按年被提到
20082013 · 39 次2026
开源书›编程语言·No.4·简称 LYAH

Learn You a Haskell for Great Good

Haskell 趣学指南
Miran Lipovača

图文并茂、语气轻松的 Haskell 与函数式编程入门教程

免费阅读 ↗
被推荐 · 212 人首次 2008-10-17 · 最近 2025-06-21许可证 CC BY-NC-SA 3.0

原站已失效,这是按 CC BY-NC-SA 许可维护的社区版。

212不同的人
117活跃月份
91有推荐的月份
221讨论串

Miran Lipovača 用轻松幽默的口吻和手绘插图,从基本类型、函数和模式匹配讲起,逐步进入高阶函数、类型类、Functor、Applicative 和 Monad。每章都有可在 GHCi 里直接敲的小例子,由浅入深,不要求读者有函数式编程基础。与偏重工程实践的 Real World Haskell 相比,它更注重把概念讲明白,适合作为第一本 Haskell 书。

HN 为什么推荐它

HN 上从 2009 年起就不断有人把它当作 Haskell 的入门首选,称赞写得轻松、不枯燥、自底向上;有人说读到后面的章节才真正理解 monad。

难度 2 / 5约 30 小时开放许可
适合谁

想入门 Haskell 或函数式编程的初学者

读之前最好知道
1基本编程概念

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1从头顺序读,每个例子都在 GHCi 里亲手敲一遍
  2. 2类型和类型类相关章节放慢读,它们是后面内容的基础
  3. 3读到 Functor、Applicative、Monad 时多花时间,对照例子反复试
  4. 4读完后配合 Real World Haskell 或自己写小项目巩固

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐hristov · 2009-11

“I strongly recommend you check out this Haskel tutorial (which I found on HN myself):”

强烈推荐这份 Haskell 教程
Ask HN: Confused semi-newbie programmer needs some advice.原评论 ↗
强烈推荐infinite8s · 2010-11

“I highly recommend the later chapters of Learn You a Haskell for Great Good.”

强烈推荐后面几章,让 monads 终于想通
Which programming book you just couldn’t stop reading from start to end?原评论 ↗
推荐raju · 2009-03

“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, (链接) ).”

列为 Haskell 入门的网上资源,另提到 Real World Haskell
Ask: Functional Programming: Where to Start?原评论 ↗
推荐paulgb · 2009-03

“BONUS' Learn You a Haskell for Great Good is a good intro as well: Learn You a Haskell for Great Good”

额外推荐作为 Haskell 的好入门
The Most Unusual (and Best) Computer Language Book I've Ever Seen.原评论 ↗
推荐stonemetal · 2009-03

“How about poignantguide.net and Learn You a Haskell for Great Good”

推荐作为新手 hacker 的在线资源
Ask HN: Online Resources for Beginner Hackers?原评论 ↗
推荐felixmar · 2009-05

“Haskell (e.g. Learn You a Haskell for Great Good). Learning Haskell is exciting”

推荐用它学 Haskell,称学 Haskell 很有意思
Ask HN: I am bored. What programming language should I learn ?原评论 ↗
看全部 20 条 →
推荐tim_sw · 2009-08

“check this one out for haskell”

推荐作为 Haskell 的入门资源
How FlightCaster (YC S09) was built (RoR + JVM + Clojure + Hadoop)原评论 ↗
推荐mbrubeck · 2009-08

“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.”

劝每年学新语言,以它作为学 Haskell 的资源
Ask HN: Computer Science Fundamentals原评论 ↗
推荐ThinkWriteMute · 2010-01

“Learn You a Haskell for Great Good <-- Once you get the basics done”

推荐在打好基础之后读
Best introduction to coding/hacking?原评论 ↗
推荐pook · 2010-05

“Being a smug lisp weenie and a haskell cultist, I'd also suggest (链接) and Learn You a Haskell for Great Good and (链接)”

以 Haskell 信徒身份推荐它
Ask HN: Java Programming Book原评论 ↗
推荐vault_ · 2010-06

“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”

推荐作为 Haskell 入门,虽未写完但是好的引导
Ask HN: Why and how should someone learn functional programming?原评论 ↗
推荐bjg · 2010-06

“I would recommend "Learn you a Haskell For Great Good" Learn You a Haskell for Great Good”

推荐这本 Haskell 教程
Ask HN: Why and how should someone learn functional programming?原评论 ↗
推荐steveklabnik · 2010-06

“maybe you should check out Real World Haskell and Learn You A Haskell for Great Good: (链接) Learn You a Haskell for Great Good”

建议与 Real World Haskell 一起看
Clojure.rb原评论 ↗
推荐wtracy · 2010-11

“I'm surprised that nobody has posted Learn You a Haskell for Great Good:”

惊讶还没人提到它,推荐补上
Which programming book you just couldn’t stop reading from start to end?原评论 ↗
推荐g__ · 2010-12

“You can start with Learn You a Haskell for Great Good.”

推荐作为起点
Ask HN: What is a monad?原评论 ↗
推荐gtani · 2011-01

“and for FP:”

推荐作为学 FP 的资源
Ask HN: How to step up my coding skills?原评论 ↗
推荐sophacles · 2011-01

“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”

投票选 Haskell,称有很棒的免费在线资源
Ask HN: What should be my next programming language?原评论 ↗
推荐wh-uws · 2011-02

“Now you're ready to do some functional programming. learn some lisp.”

推荐作为接下来学函数式编程的资源
I'm a cargo cult programmer, help me原评论 ↗
推荐kamechan · 2011-02

“a nicely-written guide on the topic is here: Learn You a Haskell for Great Good”

推荐为写得不错的 Haskell 指南
The Scheme Programming Language, Fourth Edition原评论 ↗
推荐genera · 2011-03

“A very enjoyable tutorial. Supposedly, this site was going to come out in book form.”

称是很愉快的教程,听说还会出书
The Haskell Platform 2011.2 is out: GHC 7 for all 原评论 ↗