Ok, I've been using the -i
compile option to specify the folder to some haskell source when I compile using GHC.
ghc -threaded -i/d/haskell/src --make xxx.hs
I understand it uses those files as 'libraries' while compiling but can i do same in GHCi?
I usually import haskell prepackaged lib e.g. import Data.List
or :m +Data.List
.
I tried import /d/haskell/src
-- does not work!
EDIT
From Haskell doc: Chapter 2 Using GHCi
Note that in GHCi, and ––make
mode, the -i
option is used to specify the search path for source files, whereas in standard batch-compilation mode the -i
option is used to specify the search path for interface files.