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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Mar 28 02:52:36 EDT 2009


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, you  
want to use "ghc --make" so it will chase down the package  
dependencies.  Otherwise you would need to say "ghc -package mypretty".

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20090328/ca64aaf2/PGP.bin


More information about the Beginners mailing list