[jhc] Building cabal packages

Chris Eidhof chris at eidhof.nl
Mon Nov 16 16:06:39 EST 2009


Hi,

Thanks David.

--list-libraries does include the Yampa package, but the verbose  
option doesn't show any exported modules. So the next question: how  
can I convince JHC to compile the exposed-modules in that cabal file?

-chris

On 16 nov 2009, at 21:40, David Roundy wrote:

> Jhc (in this regard it is just like ghc, in fact) accepts only a very
> simple format similar to the cabal files.  Ghc introduced this file
> format first, and jhc works fine (I think) with just about any file
> produced for ghc, but not with the newer cabal stuff (that ghc will
> also barf on).  That said, it sounds quite likely that your build
> worked.
>
> What do you get with jhc --list-libraries and jhc --list-libraries -- 
> verbose?
>
> David
>
> On Mon, Nov 16, 2009 at 3:33 PM, Chris Eidhof <chris at eidhof.nl> wrote:
>> Hey everyone,
>>
>> What's the way to build a cabalized package with jhc? I tried the  
>> following:
>>
>>> hc --build-hl Yampa.cabal yampa-0.9.2.3.hl
>>> jhc --build-hl Yampa.cabal yampa-0.9.2.3.hl
>>> jhc 0.7.3 (-n 0.7.2-40
>>> )
>>> Creating library from description file: "Yampa.cabal"
>>> Reading: "Yampa.cabal"
>>> Finding Dependencies...
>>> Using Ho Cache: '/Users/chris/.jhc/cache'
>>> Typechecking...
>>> Compiling...
>>> Writing Library: Yampa-0.9.2.3.hl
>>
>> But I don't think jhc actually compiled something, or it was  
>> *really* fast.
>> I tried copying that .hl file to my JHC_LIBRARY_PATH, but when I  
>> invoke JHC
>> with "-pyampa" it still won't find it. I'm a bit lost...
>>
>> -chris



More information about the jhc mailing list