
I want to see the source code of the Prelude. Is that available in the standard distribution? Any hints in which directory should I be looking? I've installed stack on OSX 10.11 with the below command curl -sSL https://get.haskellstack.org/ | sh Thanks, Francisco

If you only want to see the code, you can look here
https://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html
Cheers,
Ut
Il mer 26 feb 2020, 09:37 Francisco Garau
I want to see the source code of the Prelude. Is that available in the standard distribution? Any hints in which directory should I be looking?
I've installed stack on OSX 10.11 with the below command
curl -sSL https://get.haskellstack.org/ | sh
Thanks, Francisco
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

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

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
wrote: Also Hoogle is a good resource, here is the link to the Prelude module. From there you can access the functions' source.
Cheers, Alex _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

For locally available I'm not sure how to do it but I know it exists, it was mentioned in one of the videos I watched, I think it's [this one](https://www.youtube.com/watch?v=QpDQhGYPqkU&list=PLxj9UAX4Em-Ij4TKwKvo-SLp-Zbv-hB4B&index=3) but I'm not sure. As for knowing whether it's included in the prelude or not, I usually check the address bar on Hoogle or the header. But there are probably more efficient ways to deal with this. Goodluck! Cheers, Alex

You can find the official releases including sources at
http://downloads.haskell.org/~ghc/.
Am Mi., 26. Feb. 2020 um 10:57 Uhr schrieb Francisco Garau
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
wrote: Also Hoogle is a good resource, here is the link to the Prelude module. From there you can access the functions' source.
Cheers, Alex
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

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
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
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (5)
-
A. Vigneron
-
David McBride
-
Francisco Garau
-
Simon Jakobi
-
Ut Primum