I am working on a project and I use Cabal for management. I set the directory of source files, modules, all things. All my files have the same names as their corresponding modules, the register is saved.
I can do:
$ cabal configure $ cabal build
no problem.
However, imagine that I have a Module module in the Module.hs file and a File.hs file in the same directory. Now, when I try to download File.hs from Emacs for testing, I get the following:
____Could not find module 'Module' It is a member of the hidden package 'ghc-7.8.3'. Use -v to see a list of the files searched for. Failed, modules loaded: none.
Full contents of File.hs :
module File where import Module
How to find my project files?
source share