[Haskell-cafe] Problem linking against Data.Graph
Tomasz Zielonka
tomasz.zielonka at gmail.com
Fri Jul 15 15:36:36 EDT 2005
On Fri, Jul 15, 2005 at 07:13:53PM +0100, Andy Gimblett wrote:
> On Fri, Jul 15, 2005 at 10:42:11AM -0700, Josh Hoyt wrote:
> >
> > I'm pretty new myself, but I ran into a similar problem using a
> > different library. The problem is that some parts of the library are
> > hidden by default, and you have to tell ghc to include them. To
> > solve your immediate problem, add "-package fgl" to your compilation
> > line.
>
> *slaps forehead*
>
> Of course! I remember reading this now, but I had forgotten about it.
> And I've already come across this requirement in the past with Parsec,
> so I really should have thought of it...
>
> Many thanks for your help!
You won't have to add "-package fgl" if you compile with --make:
ghc --make -o Main Main.hs
Best regards
Tomasz
More information about the Haskell-Cafe
mailing list