[Haskell-beginners] Prelude source code
David McBride
toad3k at gmail.com
Wed Feb 26 12:53:04 UTC 2020
Most libraries end up on your system when you use them. You can find them
if you installed via stack, by just typing find ~/.stack -name '*tar*'
However base is special. It is distributed with ghc and if you were to
build ghc from source it would take hours, so it and its primary libraries
are distributed in already compiled form, so you'll have to look at the ghc
source code to see those libraries.
On Wed, Feb 26, 2020 at 4:57 AM Francisco Garau <francisco.garau at gmail.com>
wrote:
> Thank you. I’ve also found other references online, but I want to see the
> one installed locally in my system.
>
> I come from Smalltalk where everything is accessible and modifiable.
>
> Is the Prelude and other base modules distributed in compiled form only?
>
> Hack age and hoogle are great but it is not clear which of the results is
> giving me are immediately available or if I have to install and import a
> package
>
> - Francisco
>
>
> On 26 Feb 2020, at 08:52, A. Vigneron <a.vigneron at protonmail.com> wrote:
>
> Also Hoogle is a good resource, here is the link to the Prelude module
> <https://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html>.
> From there you can access the functions' source.
>
> Cheers,
> Alex
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20200226/0b6ccaa6/attachment.html>
More information about the Beginners
mailing list