UPDATE: clarified that this is on Mac OS X
I'm using Emacs Prelude (which uses haskell-mode) on Mac OS X and I've created a project with stack new hello
.
The project it generates is like this:
- hello:
- LICENSE
- Setup.hs
- hello.cabal
- stack.cabal
- app:
- Main.hs
- src:
- Lib.hs
- test:
- Spec.hs
If I open Main.hs in Emacs it shows this:
module Main where
import Lib
main :: IO ()
main = someFunc
But Lib is underlined as an error and placing my caret there shows this:
Could not find module 'Lib'
Use -v to see a list of the files searched for.
How do you get Emacs haskell-mode to find modules in other hs-source-dirs?