[jhc] Building cabal packages
daveroundy at gmail.com
Mon Nov 16 17:51:36 EST 2009
What does the cabal file look like?
On Mon, Nov 16, 2009 at 4:06 PM, Chris Eidhof <chris at eidhof.nl> wrote:
> 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?
> 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
>> What do you get with jhc --list-libraries and jhc --list-libraries
>> 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
>>>> 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'
>>>> Writing Library: Yampa-0.9.2.3.hl
>>> But I don't think jhc actually compiled something, or it was *really*
>>> I tried copying that .hl file to my JHC_LIBRARY_PATH, but when I invoke
>>> with "-pyampa" it still won't find it. I'm a bit lost...
More information about the jhc