Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: import literal haskell file (Erik de Castro Lopo) ---------------------------------------------------------------------- Message: 1 Date: Wed, 18 Sep 2013 16:46:29 +1000 From: Erik de Castro Lopo <mle...@mega-nerd.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] import literal haskell file Message-ID: <20130918164629.4299463ad95219e9d5459...@mega-nerd.com> Content-Type: text/plain; charset=UTF-8 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/ ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 63, Issue 24 *****************************************