[Haskell-beginners] import literal haskell file

Nathan Hüsken nathan.huesken at posteo.de
Wed Sep 18 08:28:37 CEST 2013


On 09/18/2013 12:34 AM, Brandon Allbery wrote:
> On Tue, Sep 17, 2013 at 6:18 PM, Nathan Hüsken <nathan.huesken at posteo.de
> <mailto:nathan.huesken at posteo.de>> wrote:
>
>     import ModuleName
>
>     and have a file ModuleName.lhs (in literal haskell), ghc complains
>     that it cannot find the module.
>
>
> (1) It's Literate Haskell, cf. Knuth's literate programming.
> (2) It is not imported as source; it is looking for a compiled module
> (specifically the .hi file).

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?

>
> --
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at gmail.com <mailto:allbery.b at gmail.com> ballbery at sinenomine.net
> <mailto:ballbery at sinenomine.net>
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>




More information about the Beginners mailing list