[Haskell-beginners] import literal haskell file
Erik de Castro Lopo
mle+hs at mega-nerd.com
Wed Sep 18 08:46:29 CEST 2013
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/
More information about the Beginners
mailing list