5 ms·
I’ve been meaning to learn Haskell. I appreciate this post for being honest that there are warts and that there’s a body of “community” knowledge about “the rig
by IggleSniggle 6y ago
I’ve been meaning to learn Haskell. I appreciate this post for being honest that there are warts and that there’s a body of “community” knowledge about “the right” and “the wrong” way to do Haskell that might not be immediately evident.
Anyway, a good read, even for an outsider to the ecosystem.
- dgellow 6y agoIn case you're looking for a resource to learn more about Haskell, I would highly recommend http://dev.stephendiehl.com/hask/ http://dev.stephendiehl.com/hask/. I started recently to learn the language and tooling and found this guide randomly on Twitter, and it's by far the best codex of knowledge on the language I've seen so far. No bullshit, straight to the point, everything in one page (so easy to Ctrl-F around).
- als0 6y agoAmazing find, thanks for sharing.
- almostdeadguy 6y agoEasily the best reference to this I've found. I wish every language had one of these.
- Koshkin 6y agoThis is worth a separate submission.
- kitd 6y agoThis is probably just personal taste, but I found the Haskell Wikibook [1] the single most useful resource when first coming to the language from a typical OO background. It keeps things simple and practical, how to solve typical problems, etc, without getting overrun by theory. Eg, it talks about 2 types of code, normal declarative and the imperative-like 'do' style, when to use them and how you can make them interact. Just accepting and working with that without having to understand monads etc reduces the cognitive load a lot. Once you're comfortable with it, it then goes through the underlying theory. I appreciated that. YMMV [1] https://en.wikibooks.org/wiki/Haskell https://en.wikibooks.org/wiki/Haskell
- headbee 6y agoDefinitely check out the part one of "Haskell: The Bad Parts" which is more relevant to the beginner to average Haskeller: https://www.snoyman.com/blog/2020/10/haskell-bad-parts-1/ https://www.snoyman.com/blog/2020/10/haskell-bad-parts-1/
- ABeeSea 6y agoComing from a math background, once I had the syntax sorted and could write a few simple file parsers in Haskell, “Category theory for programmers” helped me understand some of what the Haskell type system is trying to accomplish. (Endofunctors of the category of Haskell types). I didn’t and still don’t understand the template C++ in the book but still my favorite Haskell resource. Many of the examples are written in both Haskell and C++. Caveat: I just started learning this last year. https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/ https://bartoszmilewski.com/2014/10/28/category-theory-for-p...
- cies 6y agoI like this book as an intro: https://haskellbook.com/ https://haskellbook.com/ (since others were recommending)
- lubesGordi 6y agoI struggled for a long time to get past the basics presented in Learn you a Haskell for Great Good. Then someone on HN proposed Graham Hutton: Programming in Haskell and it definitely cleared some things up for me. I recommend it!