Live data from Hacker News

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

news.ycombinator.com

11–20 of 67 posts

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

#11
post #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.

Haskell is perfectly suitable for web dev, and has a great ecosystem for it.

Servant[1] allows you to create type-safe APIs, and there are many libraries that allow you to define your HTML in a type-safe way.

The Haskell wiki lists some other frameworks: https://wiki.haskell.org/Web/Frameworks

[1] https://hackage.haskell.org/package/servant

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

#12
I recently started reading Bartosz Milewski's Category Theory for Programmers[0] and while it's less about Haskell per se and more about the ideas behind it, I found it did a much better job at explaining Haskell to me than any other introduction I read before. At least I'm able to appreciate Typing the Technical Interview[1] now. :-)

[0]: https://github.com/hmemcpy/milewski-ctfp-pdf

[1]: https://aphyr.com/posts/342-typing-the-technical-interview

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

#13

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…

I started by reading those two, then made it through a chunk of 99 problems in Haskell — at some point I lost interest and felt ready to write applications.

https://wiki.haskell.org/H-99:_Ninety-Nine_Haskell_Problems

I liked Haskell Programming from First Principles as well — read it later on to fill in some gaps.

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

#16
If you're familiar with functional programming, I really like the learnxinyminutes reference for Haskell: https://learnxinyminutes.com/docs/haskell/

I'm not sure why, but the Haskell one clicks for me more than some of their other guides.

This isn't a great way to learn Haskell, but it's enough to start writing working code (and writing working code is a good way to learn!!)

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

#17
post #16

If you're familiar with functional programming, I really like the learnxinyminutes reference for Haskell: https://learnxinyminutes.com/docs/haskell/ I'm not sure why, but the Haskell one clicks for me more than some of their other guides. This isn't a great way to learn Haskell, but it's enough to start writing working code (and writing working code is a good way to learn!!)

Ooh, one nice book is the Okasaki purely functional data structures. The inline code is not Haskell, but iirc the appendix has Haskell implementations

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

#19
Haven’t touched Haskell in years, but I found the best guide was Brent Yorgey’s old UPenn CIS194 online class. It contains easy to digest text lectures with follow up classwork.

I successfully taught dozens of people who had no former functional background. Just did a weekly meeting covering the lecture and prior week’s homework.

https://www.cis.upenn.edu/~cis1940/spring13/lectures.html

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

#20
"What I wish I knew when learning Haskell" by Stephen Diehl[0][1]. It has commentary on a great deal of topics in Haskell and is very approachable. Also, learning to use Hoogle[2] will serve you well.

[0] https://smunix.github.io/dev.stephendiehl.com/hask/index.htm...

[1] https://github.com/sdiehl/wiwinwlh

[2] https://hoogle.haskell.org/

Post reply on HN