[Haskell-beginners] Re: how do you use a package (.cabal)?

7stud bbxx789_05ss at yahoo.com
Sat Mar 28 03:40:39 EDT 2009

Brandon S. Allbery KF8NH <allbery <at> ece.cmu.edu> writes:

> On 2009 Mar 28, at 2:35, 7stud wrote:
> > $ ghc -c Main.hs
> > ~/2testing/dir3$ ghc -o test Main.hs
> If you're not using the cabal framework to build your program, 

I thought I was.

> you  
> want to use "ghc --make" so it will chase down the package  
> dependencies.  Otherwise you would need to say "ghc -package mypretty".

Based on what I did to install the package, how am I supposed to use
the package in a program?  The book doesn't give any clue.

More information about the Beginners mailing list