[Haskell-cafe] Location Of Prelude.hs
J.Burton at brighton.ac.uk
Wed Aug 12 17:19:05 UTC 2015
On 12/08/15 18:03, Brandon Allbery wrote:
> On Wed, Aug 12, 2015 at 12:54 PM, <debdutk at gnulinuxed.tk
> <mailto:debdutk at gnulinuxed.tk>> wrote:
> I was reading the book "The Haskell Road to Logic, Math and
> Programming" and it refers to /usr/lib/hugs/libraries/Hugs/ as the
> probable location for Prelude.hs. I am currently using Elementary OS
> Luna (based of Ubuntu 12.04) and could not file the file at the
> specified location. Can anyone please tell me where to find it?
> Hugs is obsolete and unmaintained, so you are unlikely to find that
The Hugs Prelude is/was nice and simple -- self-contained, no compiler
pragmas -- which is why you're encouraged to read it in the Haskell Road
book...I think the idea is to convey that the student could have written
it themselves, including things that are primitive in other languages,
with no magic required.
> ghc compiles, where Hugs is an interpreter, so it does not come with
> Prelude source.
> The API documentation gives me a link to
> (syntax-highlighted source). Beyond that you'd need to get the source to
> ghc; note that there will be three different Prelude sources (haskell98
> standard, haskell2010 standard, and ghc's default behavior) and that all
> three are largely built from parts imported from elsewhere.
> brandon s allbery kf8nh sine nomine associates
> allbery.b at gmail.com <mailto:allbery.b at gmail.com>
> ballbery at sinenomine.net <mailto:ballbery at sinenomine.net>
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
> This email has been scanned by MessageLabs' Email Security
> System on behalf of the University of Brighton.
> For more information see http://www.brighton.ac.uk/is/spam/
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
More information about the Haskell-Cafe