Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] import literal haskell file
Message-ID: <[email protected]>
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
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 63, Issue 24
*****************************************