
18 Sep
2013
18 Sep
'13
2:46 a.m.
Nathan Hüsken wrote:
Mmh, ok. The file is part of a cabal project. So I have: Main.hs, Module.lhs, and main cannot find the module Module. How do I instruct cabal to produce the needed hi file?
The cabal file will have something like: executable your-program main-is: Main.hs hs-source-dirs: src default-language: Haskell98 and some below that you need to add to that: other-modules: ModuleName If that't not exactly right the cabal documentation [0] should be able to help you. Erik [0] http://www.haskell.org/cabal/users-guide/ -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/