Difference between revisions of "Learning Haskell"

From HaskellWiki
Jump to navigation Jump to search
m (→‎Textbooks: updated link)
(Remove sales pitch (they're already here). Add some links.)
 
(5 intermediate revisions by 4 users not shown)
Line 2: Line 2:
   
 
This portal points to places where you can go if you want to learn Haskell.
 
This portal points to places where you can go if you want to learn Haskell.
 
The [[Introduction|Introduction to Haskell]] on the Haskell website tells you what Haskell gives you: substantially increased programmer productivity, shorter, clearer, and more maintainable code, fewer errors, higher reliability, a smaller semantic gap between the programmer and the language, shorter lead times. There is an old but still relevant paper about [http://www.cse.chalmers.se/~rjmh/Papers/whyfp.html Why Functional Programming Matters] (PDF) by John Hughes. More recently, Sebastian Sylvan wrote an article about [[Why Haskell Matters]].
 
   
 
Join the [http://www.reddit.com/r/haskell Haskell subreddit], where we do regular Q&A threads called [[Hask Anything]] (that's the archive).
 
Join the [http://www.reddit.com/r/haskell Haskell subreddit], where we do regular Q&A threads called [[Hask Anything]] (that's the archive).
   
  +
You can ask questions to members of the Haskell community on [https://matrix.to/#/#haskell:matrix.org Matrix], mailing lists, IRC, or StackOverflow.
There is also a [http://www.haskell.org/haskellwiki/Comparison table comparing Haskell to other functional languages]. Many questions about functional programming are answered by the [http://www.cs.nott.ac.uk/~gmh//faq.html comp.lang.functional FAQ].
 
   
You can ask questions to members of the Haskell community on mailing lists, IRC, or StackOverflow. We recommend installing the [http://www.haskell.org/platform/ Haskell Platform].
+
To get started, [https://www.haskell.org/get-started/ set up your Haskell environment]. You can also try out Haskell in your browser on the [https://play.haskell.org/ Haskell Playground]!
   
 
== Training courses ==
 
== Training courses ==
Line 28: Line 26:
 
* [https://haskellfromtheverybeginning.com/ Haskell from the Very Beginning]
 
* [https://haskellfromtheverybeginning.com/ Haskell from the Very Beginning]
 
* [https://haskellbook.com/ Haskell Programming from first principles]
 
* [https://haskellbook.com/ Haskell Programming from first principles]
* [http://www.cs.yale.edu/homes/hudak/SOE/ The Haskell School of Expression]
+
* [http://web.archive.org/web/20190705205338/https://www.cs.yale.edu/homes/hudak/SOE/ The Haskell School of Expression]
 
* [http://www.haskellcraft.com/ Haskell: the Craft of Functional Programming]
 
* [http://www.haskellcraft.com/ Haskell: the Craft of Functional Programming]
 
* [https://www.pearson.com/us/higher-education/program/Bird-Introduction-Functional-Programming-2nd-Edition/PGM144889.html Introduction to Functional Programming using Haskell]
 
* [https://www.pearson.com/us/higher-education/program/Bird-Introduction-Functional-Programming-2nd-Edition/PGM144889.html Introduction to Functional Programming using Haskell]
Line 47: Line 45:
 
* [http://www.cs.ou.edu/~rlpage/fpclassCurrent/textbook/haskell.shtml Two dozen short lessons]
 
* [http://www.cs.ou.edu/~rlpage/fpclassCurrent/textbook/haskell.shtml Two dozen short lessons]
 
* [http://www.haskell.org/tutorial/ A Gentle Introduction to Haskell] - classic text, but not so gentle really :D
 
* [http://www.haskell.org/tutorial/ A Gentle Introduction to Haskell] - classic text, but not so gentle really :D
* [ftp://ftp.geoinfo.tuwien.ac.at/navratil/HaskellTutorial.pdf Haskell-Tutorial]
+
* [https://fulmanski.pl/zajecia/jpsi/HaskellTutorial.pdf Haskell-Tutorial]
 
* [https://web.archive.org/web/20130515011818/lasche.codingcrew.de/kurse/haskell/hskurs_index.htm Online Haskell Course] (German)
 
* [https://web.archive.org/web/20130515011818/lasche.codingcrew.de/kurse/haskell/hskurs_index.htm Online Haskell Course] (German)
 
* [http://collection.openlibra.com.s3.amazonaws.com/pdf/haskell_tutorial_for_c_programmers_en.pdf Haskell tutorial for C Programmers]
 
* [http://collection.openlibra.com.s3.amazonaws.com/pdf/haskell_tutorial_for_c_programmers_en.pdf Haskell tutorial for C Programmers]
 
* [http://learnyouahaskell.com/ Learn You a Haskell for Great Good!] Beautiful, illustrated Haskell tutorial for programmers with less of a functional programming background.
 
* [http://learnyouahaskell.com/ Learn You a Haskell for Great Good!] Beautiful, illustrated Haskell tutorial for programmers with less of a functional programming background.
  +
* [https://learnyouahaskell.github.io/ Learn You a Haskell for Great Good! - Community version] An up-to-date community maintained version of the renowned "Learn You a Haskell" (LYAH) guide.
 
* [http://happylearnhaskelltutorial.com/ Happy Learn Haskell Tutorial] Up to date complete beginner illustrated tutorial that uses many basic examples and exercises , going very slowly step by step.
 
* [http://happylearnhaskelltutorial.com/ Happy Learn Haskell Tutorial] Up to date complete beginner illustrated tutorial that uses many basic examples and exercises , going very slowly step by step.
 
* [http://www.youtube.com/playlist?list=PL2672EBC57C1F5F9B Learning Haskell] Ongoing tutorial in the form of YouTube videos; updates slowly.
 
* [http://www.youtube.com/playlist?list=PL2672EBC57C1F5F9B Learning Haskell] Ongoing tutorial in the form of YouTube videos; updates slowly.
Line 61: Line 60:
 
* [[Hitchhikers guide to Haskell]]
 
* [[Hitchhikers guide to Haskell]]
 
* [http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours Write Yourself a Scheme in 48 Hours]
 
* [http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours Write Yourself a Scheme in 48 Hours]
* [http://research.microsoft.com/en-us/um/people/simonpj/papers/marktoberdorf/ Tackling the Awkward Squad] (on I/O, interfacing to C, concurrency and exceptions)
+
* [https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.13.9123&rep=rep1&type=pdf Tackling the Awkward Squad] (on I/O, interfacing to C, concurrency and exceptions)
   
 
=== Debugging/profiling/optimization ===
 
=== Debugging/profiling/optimization ===
Line 83: Line 82:
 
=== Popular libraries ===
 
=== Popular libraries ===
   
* ByteStrings?
 
 
* [https://web.archive.org/web/20140624104743/legacy.cs.uu.nl/daan/download/parsec/parsec.html Parsec, a fast combinator parser]
 
* [https://web.archive.org/web/20140624104743/legacy.cs.uu.nl/daan/download/parsec/parsec.html Parsec, a fast combinator parser]
 
* [[Modern array libraries]]
 
* [[Modern array libraries]]
Line 95: Line 93:
 
* [http://zvon.org/other/haskell/Outputglobal/index.html Haskell Reference]
 
* [http://zvon.org/other/haskell/Outputglobal/index.html Haskell Reference]
 
* Haskell [[Reference card]]
 
* Haskell [[Reference card]]
* [http://members.chello.nl/hjgtuyl/tourdemonad.html A tour of the Haskell Monad functions]
+
* [http://www.cs.uu.nl/research/projects/helium/docs/TourOfPrelude.html Tour of the Helium Prelude]
* [http://www.cs.uu.nl/wiki/bin/view/Helium/ATourOfTheHeliumPrelude Tour of the Helium Prelude]
 
 
* [http://www.cs.kent.ac.uk/people/staff/sjt/craft2e/errors/allErrors.html Some common Hugs error messages]
 
* [http://www.cs.kent.ac.uk/people/staff/sjt/craft2e/errors/allErrors.html Some common Hugs error messages]
 
* [http://cheatsheet.codeslower.com/ The Haskell Cheatsheet] - A reference card and mini-tutorial in one.
 
* [http://cheatsheet.codeslower.com/ The Haskell Cheatsheet] - A reference card and mini-tutorial in one.
Line 109: Line 106:
 
* [http://www.shuklan.com/haskell Introduction to Haskell], University of Virginia CS 1501
 
* [http://www.shuklan.com/haskell Introduction to Haskell], University of Virginia CS 1501
 
* [http://www.cs.caltech.edu/courses/cs11/material/haskell/index.html CS 11 Caltech]
 
* [http://www.cs.caltech.edu/courses/cs11/material/haskell/index.html CS 11 Caltech]
* [http://www.cs.uu.nl/docs/vakken/lfp/ Functional programming]: course notes ([http://www.staff.science.uu.nl/~fokke101/courses/fp-eng.pdf English], [http://www.staff.science.uu.nl/~fokke101/courses/fp-nl.pdf Dutch], [http://www.staff.science.uu.nl/~fokke101/courses/fp-sp.pdf Spanish]), slides in Dutch
+
* [http://web.archive.org/web/20141118180122/www.cs.uu.nl/docs/vakken/lfp/ Functional programming]: course notes ([http://web.archive.org/web/20171215071419/www.staff.science.uu.nl/~fokke101/courses/fp-eng.pdf English], [http://web.archive.org/web/20160801052854/www.staff.science.uu.nl/~fokke101/courses/fp-nl.pdf Dutch], [http://web.archive.org/web/20181222232248/www.staff.science.uu.nl/~fokke101/courses/fp-sp.pdf Spanish]), slides in Dutch
 
* [http://www.cse.unsw.edu.au/~cs1011/05s2/ CS1011]: Tutorials, lab exercises and solutions
 
* [http://www.cse.unsw.edu.au/~cs1011/05s2/ CS1011]: Tutorials, lab exercises and solutions
 
* Stanford - [http://www.scs.stanford.edu/11au-cs240h/ Functional Systems in Haskell]
 
* Stanford - [http://www.scs.stanford.edu/11au-cs240h/ Functional Systems in Haskell]
Line 117: Line 114:
   
 
There are several websites where you can enter a Haskell program and run it. They are (in no particular order):
 
There are several websites where you can enter a Haskell program and run it. They are (in no particular order):
  +
* [https://play.haskell.org/ Haskell Playground]
 
* [https://cocalc.com/app CoCalc app], formerly SageMathCloud
 
* [https://cocalc.com/app CoCalc app], formerly SageMathCloud
* [https://www.fpcomplete.com/school/using-fphc FP Haskell Center]
 
 
* [http://tryhaskell.org/ Try Haskell]
 
* [http://tryhaskell.org/ Try Haskell]
 
* [http://www.code.world/haskell CodeWorld]
 
* [http://www.code.world/haskell CodeWorld]
 
* [http://chrisuehlinger.com/LambdaBubblePop/ Bubble Pop!], the satisfaction of popping bubble wrap, combined with the satisfaction of really elegant functional programming!
 
* [http://chrisuehlinger.com/LambdaBubblePop/ Bubble Pop!], the satisfaction of popping bubble wrap, combined with the satisfaction of really elegant functional programming!
* [http://tryplayg.herokuapp.com/ Try Haste & HPlayground client-side framework]; the source code is on [https://github.com/agocorona/tryhplay GitHub]
+
* [http://web.archive.org/web/20181127035556/http://tryplayg.herokuapp.com/ Try Haste & HPlayground client-side framework]; the source code is on [https://github.com/agocorona/tryhplay GitHub]
 
* [https://koding.com/ Koding] is a cloud based IDE which supports Haskell and several other languages. Free accounts allow one virtual machine.
 
* [https://koding.com/ Koding] is a cloud based IDE which supports Haskell and several other languages. Free accounts allow one virtual machine.
   
 
To create a browser based environment yourself:
 
To create a browser based environment yourself:
* [http://gibiansky.github.io/IHaskell/ IHaskell]
+
* [http://web.archive.org/web/20140928145733/gibiansky.github.io/IHaskell/ IHaskell]

Latest revision as of 14:24, 18 March 2024


This portal points to places where you can go if you want to learn Haskell.

Join the Haskell subreddit, where we do regular Q&A threads called Hask Anything (that's the archive).

You can ask questions to members of the Haskell community on Matrix, mailing lists, IRC, or StackOverflow.

To get started, set up your Haskell environment. You can also try out Haskell in your browser on the Haskell Playground!

Training courses

Short training courses aimed at existing programmers

Material for self-study

Below there are links to certain introductory material. If you want to dig deeper, see Books and tutorials.

Textbooks

Online tutorials

Advanced tutorials

Debugging/profiling/optimization

Monads

Type classes

Generic programming

Popular libraries

Reference

Course material

Trying Haskell online

There are several websites where you can enter a Haskell program and run it. They are (in no particular order):

To create a browser based environment yourself: