I have two files in the same folder, Eval.hs and Data.hs, module in Eval.hs imports module TI.Data in Data.hs, when I try to load Eval.hs in the interactive (in emacs haskell mode: Ctrl-c, Ctrl l), it said it can’t find the module defined in Data.hs, but it loaded successfully before, why suddenly it can’t??
btw, I noticed that the first time I execute Ctrl-c, Ctrl l, the interative window:
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :cd ~/.cabal/
Prelude> :load "../hs/TI/Eval.hs"
../hs/TI/Eval.hs:2:7:
Could not find module `TI.Data':
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
I sometimes have this same problem with haskell-mode on Emacs. My workaround is to
Now when you want to reload the module you have to use
instead of Ctrl-C, Ctrl-l.
If someone knows a better way, please let me know.
-deech