<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>On 2015-08-12 13:03, Brandon Allbery wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Aug 12, 2015 at 12:54 PM, <span><<a href="mailto:debdutk@gnulinuxed.tk">debdutk@gnulinuxed.tk</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div>
<p>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?</p>
</div>
</blockquote>
<div>Hugs is obsolete and unmaintained, so you are unlikely to find that anywhere.</div>
<div> </div>
<div>ghc compiles, where Hugs is an interpreter, so it does not come with Prelude source.</div>
<div> </div>
<div>The API documentation gives me a link to <a href="http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010-1.1.1.0/src/Prelude.html">http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010-1.1.1.0/src/Prelude.html</a> (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.</div>
</div>
<div> </div>
-- <br />
<div class="gmail_signature">
<div dir="ltr">
<div>brandon s allbery kf8nh                               sine nomine associates</div>
<div><a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net">http://sinenomine.net</a></div>
</div>
</div>
</div>
</div>
</blockquote>
<p> </p>
<p>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 :</p>
<p>Prelude.hs is found in <span style="font-size: small;"><strong>/usr/lib/hugs/packages/base/Prelude.hs</strong> </span><span style="font-size: xx-small;"></span>for ubuntu and debian based distros.</p>
<p> </p>
<p>_____________________</p>
<p>Yours Truly,                                                                                                                                                                                                                                               Debdut Karmakar</p>
<div> </div>
</body></html>