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@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