“I strongly recommend you check out this Haskel tutorial (which I found on HN myself):”
Learn You a Haskell for Great Good
图文并茂、语气轻松的 Haskell 与函数式编程入门教程
原站已失效,这是按 CC BY-NC-SA 许可维护的社区版。
Miran Lipovača 用轻松幽默的口吻和手绘插图,从基本类型、函数和模式匹配讲起,逐步进入高阶函数、类型类、Functor、Applicative 和 Monad。每章都有可在 GHCi 里直接敲的小例子,由浅入深,不要求读者有函数式编程基础。与偏重工程实践的 Real World Haskell 相比,它更注重把概念讲明白,适合作为第一本 Haskell 书。
HN 上从 2009 年起就不断有人把它当作 Haskell 的入门首选,称赞写得轻松、不枯燥、自底向上;有人说读到后面的章节才真正理解 monad。
想入门 Haskell 或函数式编程的初学者
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从头顺序读,每个例子都在 GHCi 里亲手敲一遍
- 2类型和类型类相关章节放慢读,它们是后面内容的基础
- 3读到 Functor、Applicative、Monad 时多花时间,对照例子反复试
- 4读完后配合 Real World Haskell 或自己写小项目巩固
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“I highly recommend the later chapters of Learn You a Haskell for Great Good.”
“Another good place to start would be Haskell. Real World Haskell is a good book, and there are several resources to get you started on the web (Learn You a Haskell for Great Good, (链接) ).”
“BONUS' Learn You a Haskell for Great Good is a good intro as well: Learn You a Haskell for Great Good”
“How about poignantguide.net and Learn You a Haskell for Great Good”
“Haskell (e.g. Learn You a Haskell for Great Good). Learning Haskell is exciting”
看全部 20 条 →
“check this one out for haskell”
“Learn a new programming language or two every year. By learning extremely different languages (C, Lisp, Haskell, Io, Forth, Mercury, J...) you'll learn to think in a lot of different ways.”
“Learn You a Haskell for Great Good <-- Once you get the basics done”
“Being a smug lisp weenie and a haskell cultist, I'd also suggest (链接) and Learn You a Haskell for Great Good and (链接)”
“I'm a fan of Learn You a Haskell for Great Good. It's not quite done (a couple of advanced topics are absent at the moment) but it's a good introduction to the language”
“I would recommend "Learn you a Haskell For Great Good" Learn You a Haskell for Great Good”
“maybe you should check out Real World Haskell and Learn You A Haskell for Great Good: (链接) Learn You a Haskell for Great Good”
“I'm surprised that nobody has posted Learn You a Haskell for Great Good:”
“You can start with Learn You a Haskell for Great Good.”
“and for FP:”
“I vote for haskell. There are a couple of great online resources for free[1], and if you are at all like me, you'll benefit immensely from it”
“Now you're ready to do some functional programming. learn some lisp.”
“a nicely-written guide on the topic is here: Learn You a Haskell for Great Good”
“A very enjoyable tutorial. Supposedly, this site was going to come out in book form.”