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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Mar 28 03:43:15 EDT 2009


On 2009 Mar 28, at 3:40, 7stud wrote:
> 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 used it to build your package.  You're using ghc directly to build  
your program, not doing "runhaskell Setup.hs build" or "cabal install".

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

That is exactly what you just quoted.

-- 
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/ad675927/PGP.bin


More information about the Beginners mailing list