Is a ghc package the same as a cabal package?

Is a ghc package the same as a cabal package? As far as I can tell they are not. I mean "package" as defined by the documentation for each. In the ghc documentation it states that "A package specification is a Haskell record". A Cabal package seems to be a collection of stuff including the .cabal file etc. Finally, does Hackage use the term "package" differently again? Rant: package and/or build systems are the bane of my existence in any non-commercial language that I use. Sigh. I have been using Cabal and cabal-install naively (read "blindly") for long enough; time to come to grips with it. Thanks, if anyone has time to help. - P -

On Tue, Feb 18, 2014 at 11:26 PM, Philippe Sismondi
Rant: package and/or build systems are the bane of my existence in any non-commercial language that I use. Sigh. I have been using Cabal and cabal-install naively (read "blindly") for long enough; time to come to grips with it.
You are not alone. It's true that cabal works smoothly for lots of users lots of the time. But when it doesn't, it's murder. -- Kim-Ee

On Tue, Feb 18, 2014 at 11:26 AM, Philippe Sismondi
Is a ghc package the same as a cabal package? As far as I can tell they are not. I mean "package" as defined by the documentation for each.
Start here: http://www.vex.net/~trebla/haskell/sicp.xhtml Briefly: a cabal package is a collection of source code, metadata, and build instructions to create a ghc package. Hackage is a collection of cabal packages. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Thanks, all. That helps.
The ambiguous use of the term "package" was tripping me up. Kind of like when I didn't know that "cabal" invokes "cabal-install", and (more recently) that I invoke "cabal-repl" by typing "cabal repl".
Funny that understanding the problems created by ambiguity in source code does not seem to prevent us as a community from f**king up our use of natural language, naming, documentation etc.
Back to work.
Best,
- P -
On 2014-02-18, at 12:46 PM, Brandon Allbery
On Tue, Feb 18, 2014 at 11:26 AM, Philippe Sismondi
wrote: Is a ghc package the same as a cabal package? As far as I can tell they are not. I mean "package" as defined by the documentation for each. Start here: http://www.vex.net/~trebla/haskell/sicp.xhtml
Briefly: a cabal package is a collection of source code, metadata, and build instructions to create a ghc package. Hackage is a collection of cabal packages.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Actually - feeling a bit guilty here.
I just found the passage in the Cabal documentation that treats the issue of ghc versus cabal packages.
That's probably not the last time I'll post before the RTFM step, but my apologies anyway.
- P -
On 2014-02-18, at 11:26 AM, Philippe Sismondi
Is a ghc package the same as a cabal package? As far as I can tell they are not. I mean "package" as defined by the documentation for each.
In the ghc documentation it states that "A package specification is a Haskell record". A Cabal package seems to be a collection of stuff including the .cabal file etc.
Finally, does Hackage use the term "package" differently again?
Rant: package and/or build systems are the bane of my existence in any non-commercial language that I use. Sigh. I have been using Cabal and cabal-install naively (read "blindly") for long enough; time to come to grips with it.
Thanks, if anyone has time to help.
- P - _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (3)
-
Brandon Allbery
-
Kim-Ee Yeoh
-
Philippe Sismondi