Cabal Bug

Dominic Steinitz dominic.steinitz at
Wed Apr 6 14:25:51 EDT 2005


Thanks for your prompt and comprehensive response.


On Tuesday 05 Apr 2005 9:33 pm, Isaac Jones wrote:
> Dominic Steinitz <dominic.steinitz at> writes:
> (snip)
> >  So I added
> >
> > Ghc-options:     -fglasgow-exts
> You might look at the Extensions field to see if your exstension is
> explicitly listed there.
It wasn't clear to me which extension to use. Is there some way of finding out 
or do you just have to know?

> > to the cabal file. Now this module compiles but I still get the same
> > error on a different module and I know -fglasgow-exts allows this to
> > compile when I do it by hand.
> It's perhaps because it's trying to build an executable at this point
> and you didn't add that flag to the executables.  I take it that the
> executables depend on the library?
That's fixed it.
> (snip)
> > Why is cabal recompiling sources and why am I getting errors on the
> > second compilation?
> Executables that depend on their own libraries are slightly awkward
> right now; we hope to improve support for that in the future.  For
> now, you should add that flag to both executables.  You should also
> list the depended-upon modules to the other-modules field for that
> executable.

More information about the Libraries mailing list