Unable to import hunit into ghci

I just installed HUnit and want to import it into ghci.

Prelude> import HUnit <no location info>: Could not find module `HUnit': Use -v to see a list of the files searched for. 

Also, I'm not sure how to use -v to help me.

 Prelude> import -v HUnit <interactive>:1:8: parse error on input `-' Prelude> import -v <interactive>:1:8: parse error on input `-' Prelude> -v <interactive>:1:2: Not in scope: `v' 

How to import it?

+4
source share
1 answer

The correct module is Test.HUnit . Import and it should work.

To use the -v , specify it on the command line, for example. ghci -v or type :set -v from inside GHCi.

+12
source

All Articles