Live data from Hacker News

Ask HN: What resources do you recommend for learning Haskell?

news.ycombinator.com

1–10 of 67 posts

Ask HN: What resources do you recommend for learning Haskell?

#1
What resources do you recommend for learning Haskell?

I am working my way through “Learn You a Haskell for the greater good”

I also have a side project to learn things by doing, but was wondering what the most recommended learning sources were which people found very useful.

Re: Ask HN: What resources do you recommend for learning Haskell?

#2
Not meaning to hijack the thread, but I would be interested in opinions on the "best" type system implementation that has enough of a library ecosystem to be suitable for web/app development.

To be clear it's also for learning, but I'm wondering what else is there outside of the Haskell/PureScript etc. world.

Re: Ask HN: What resources do you recommend for learning Haskell?

#3
I really liked https://haskellbook.com/. It’s long, but has exercises after each chapter which I found very helpful.

The first chapter is about Lambda Calculus which is kind of a Haskell meme at this point, but learning it actually did help me a lot to grok how Haskell programs are meant to fit together.

Other than that, just doing some basic side projects and leaning about how to use Cabal effectively should get you there.

Re: Ask HN: What resources do you recommend for learning Haskell?

#6
Haskell Programming from First Principles[1] is extremely comprehensive, covering everything from lambda calculus to IO.

For further self-learning, it might be interesting to learn about the underlying mathematical concepts, such as category theory. A deep dive into the workings of a Hindley–Milner type system might also help demystify some of Haskell's typing magic.

[1] https://haskellbook.com/

Re: Ask HN: What resources do you recommend for learning Haskell?

#7
A common failure mode is for people to think Haskell is some special snowflake that requires reading 50 books and papers to understand. It doesn’t. Learning by doing is definitely the way to go. LYAH is fine but not great at practical problems. Real World Haskell is somewhat out of date but better at the actual “how do I make a program that does real things?” question. Best bet is to hack until you get stuck or your solution seems too ugly, then ask for leads on Reddit or the FP discord.

Re: Ask HN: What resources do you recommend for learning Haskell?

#9
Working through Learn You A Haskell is a good start.

After that, I honestly think you'll get the best bang-for-buck by reading library-specific tutorials. If you play with enough of the libraries the rest of the language more or less falls into place.

Conduit is a pretty ok streaming library, and has good documentation: https://github.com/snoyberg/conduit#readme

Lens gives you a lot of useful features that more or less correspond to stuff like Getters and Setters in something like Java, and the tutorials for it get into some helpful details about writing Haskell code: https://hackage.haskell.org/package/lens

Otherwise it's basically a lot of "just build shit, and don't be afraid to feel confused" and it'll fall into place.

Post reply on HN