You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
4.0 KiB
Markdown

10 years ago
# How to learn Haskell
10 years ago
This is a recommended path for learning Haskell based on experience helping others.
10 years ago
10 years ago
## For non-English speakers
10 years ago
* [Auf Deutsch](guide-de.md)
<!-- * [Στην ελληνική](guide-el.md) -->
10 years ago
10 years ago
* [En Español](guide-es.md)
10 years ago
* [En Français](guide-fr.md)
10 years ago
* [In Italiano](guide-it.md)
10 years ago
* [Em Português](guide-pt.md)
* [繁體中文](guide-zh_tw.md)
9 years ago
* [По-русски](guide-ru.md)
* [Українською](guide-ua.md)
10 years ago
10 years ago
#### *Don't sweat the stuff you don't understand immediately*. Keep moving!
## Community
10 years ago
Our IRC channel is `#haskell-beginners` on Freenode.
IRC web client [here](http://webchat.freenode.net/).
10 years ago
The haskell [mailing lists](https://wiki.haskell.org/Mailing_lists).
10 years ago
### Community Guidelines
10 years ago
See [the community guidelines](coc.md) to understand the conduct that is expected in the IRC channel. You'll get a warning if you're not obviously trolling, but be aware the channel is exclusively for those learning or teaching Haskell.
9 years ago
# Installing Haskell
## Use Stack to get going with Haskell
Get [Stack](http://haskellstack.org) to get GHC installed and to build your projects.
If you don't know anything about Stack and would like an overview, check out this [comprehensive Stack video tutorial](https://www.youtube.com/watch?v=sRonIB8ZStw).
## Also, DO NOT INSTALL HASKELL PLATFORM
Instead of following the instructions on Haskell.org, get Stack.
### Why not platform?
https://mail.haskell.org/pipermail/haskell-community/2015-September/000014.html
10 years ago
# How should I learn Haskell?
10 years ago
The core recommendation is to read the lectures and complete all exercises/homework for the Spring 13 version of cis194 followed by the NICTA course. Both are linked below. Everything else can be considered optional and is mentioned so you know where to look.
## Yorgey's cis194 course
10 years ago
10 years ago
> *Do this first*, this is the primary way we recommend being introduced to
> Haskell.
10 years ago
Available [online](http://www.seas.upenn.edu/~cis194/spring13/lectures.html).
[Brent Yorgey](https://byorgey.wordpress.com)'s course is the best I've found so
far. This course is valuable as it will not only equip you to write basic
Haskell but also help you to understand parser combinators.
The only reason you shouldn't start with cis194 is if you are not a programmer
or are an inexperienced one. If that's the case, start with
[Thompson's book](http://www.haskellcraft.com/craft3e/Home.html) and transition
to cis194.
---
## NICTA course
10 years ago
> This is the course we recommend doing after Yorgey's cis194 course
Available on github [here](https://github.com/NICTA/course).
This will reinforce and give you experience directly implementing the
abstractions introduced in cis194, this is practice which is *critical* to
becoming comfortable with everyday uses of Functor/Applicative/Monad/etc. in
Haskell. Doing cis194 and then the NICTA course represents the core
10 years ago
recommendation of my guide and is how we teach everyone Haskell.
---
10 years ago
## Supplementary course after cis194 and the NICTA course
> Provides more material on intermediate topics
10 years ago
cs240h is available [online](http://www.scs.stanford.edu/14sp-cs240h/).
This is [Bryan O'Sullivan](https://github.com/bos)'s online course from the
class he teaches at Stanford. If you don't know who he is, take a gander at half
the libraries any Haskell application ends up needing and his name is on it. Of
particular note if you've already done the Yorgey course are the modules on
phantom types, information flow control, language extensions, concurrency,
pipes, and lenses.
---
10 years ago
# Resources for specific topics in Haskell
10 years ago
10 years ago
These resources are not vetted or tested with learners as cis194 and NICTA course have been, but they're linked in [the topic listing](specific_topics.md) so you have ideas on where to begin. This includes things like intermediate/advanced concepts and subjects like tooling and text editors.
10 years ago
## Dialogues
> Hosted in this repository [here](dialogues.md).
These are actually pretty important and helpful. Look here for deep dives on a
variety of topics.