
Hi, 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? _____________________ Yours Truly, Debdut Karmakar

On Wed, Aug 12, 2015 at 12:54 PM,
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 anywhere. ghc compiles, where Hugs is an interpreter, so it does not come with Prelude source. The API documentation gives me a link to http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010... (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@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Wed, Aug 12, 2015 at 12:54 PM,
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 anywhere.
ghc compiles, where Hugs is an interpreter, so it does not come with Prelude source.
The API documentation gives me a link to http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010... [1] (syntax-highlighted source). Beyond that you'd need to get the
On 2015-08-12 13:03, Brandon Allbery wrote: 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@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net [2]
Thanks for that. But I think that HUGS also has a Prelude.hs . After doing a bit of searching, I found it and posting it for reference : Prelude.hs is found in /USR/LIB/HUGS/PACKAGES/BASE/PRELUDE.HS for ubuntu and debian based distros. _____________________ Yours Truly, Debdut Karmakar Links: ------ [1] http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010... [2] http://sinenomine.net

A useful trick is that you can access the source of a function or type
directly by clicking the 'source' link to the right of the name in the
documentation[1]. This will take you to the module where the identifier was
defined rather than where it was imported from. (For example, Maybe is
defined in Data.Maybe[2].)
[1]: https://hackage.haskell.org/package/base-4.5.0.0/docs/Prelude.html
[2]:
https://hackage.haskell.org/package/base-4.5.0.0/docs/src/Data-Maybe.html#Ma...
On Wed, Aug 12, 2015 at 10:03 AM, Brandon Allbery
On Wed, Aug 12, 2015 at 12:54 PM,
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 anywhere.
ghc compiles, where Hugs is an interpreter, so it does not come with Prelude source.
The API documentation gives me a link to http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010... (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@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

On 12/08/15 18:03, Brandon Allbery wrote:
On Wed, Aug 12, 2015 at 12:54 PM,
mailto:debdutk@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 anywhere.
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. http://ogi.altocumulus.org/~hallgren/Programatica/tools/hi/libs/HugsLibrarie...
ghc compiles, where Hugs is an interpreter, so it does not come with Prelude source.
The API documentation gives me a link to http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010... (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@gmail.com mailto:allbery.b@gmail.com ballbery@sinenomine.net mailto:ballbery@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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
___________________________________________________________ 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/ ___________________________________________________________

On Wed, Aug 12, 2015 at 1:19 PM, James Burton
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.
I wonder if https://www.haskell.org/onlinereport/haskell2010/haskellch9.html#x16-1710009 would be a reasonable alternative given the unmaintained-ness of Hugs? -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (4)
-
Brandon Allbery
-
debdutk@gnulinuxed.tk
-
James Burton
-
Tikhon Jelvis