按年被提到
20082015 · 13 次2026
开源书›编程语言·No.32

Haskell Wikibook

Haskell 维基教科书
Wikibooks contributors

社区共写的 Haskell 入门到进阶,讲清 Functor 与 Monad

免费阅读 ↗
被推荐 · 76 人首次 2008-02-13 · 最近 2025-10-28许可证 CC BY-SA 4.0
76不同的人
66活跃月份
29有推荐的月份
87讨论串

Wikibooks 社区共同编写的 Haskell 教程,从基础语法一路讲到 Functor、Applicative、Monad、惰性求值和 zipper 等进阶主题。内容以讲解和例子为主,行文精炼,没有太多铺垫。和 Learn You a Haskell 等同类教材相比,它更像一份可以按章节查阅的参考型教程,由多位作者协作编写,各章风格略有不同。

HN 为什么推荐它

HN 上的人常用它来解释 monad、do 记法和惰性求值,有人称它是最好的 Haskell 整体入门,也有人说它被低估了,比 LYAH 更好读。

难度 3 / 5约 40 小时开放许可
适合谁

想学 Haskell 或搞懂 Monad 的程序员

读之前最好知道
1任一门编程语言基础
2函数式编程概念

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1从基础章节开始顺序读,别急着跳到 Monad
  2. 2按 Functor、Applicative、Monad 的顺序读相关章节
  3. 3遇到不懂的概念再查对应的专题章节,如惰性求值
  4. 4边读边在 GHCi 里试代码

HN 书评

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

“I suggest the Haskell Wikibook as the best overall intro to Haskell actually: Haskell Wikibook”

强烈推荐它作为 Haskell 最好的整体入门
Learn You a Haskell for Great Good (2008)原评论 ↗
推荐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 ((链接), Haskell Wikibook ).”

推荐它作为入门 Haskell 的网上资源之一
Ask: Functional Programming: Where to Start?原评论 ↗
推荐calambrac · 2009-03

“The Haskell wiki entry on modules is short, pretty complete, and has plenty of examples:”

称它讲 Haskell modules 简短完整且有大量例子
Hello Haskell, Goodbye Lisp原评论 ↗
推荐yummyfajitas · 2010-05

“Then read this explanation of do notation:”

推荐读它对 do notation 的解释,以理解 monad
Snap: A Haskell Web Framework原评论 ↗
推荐joelburget · 2011-04

“The Haskell wikibook also has a fairly comprehensive chapter on laziness: Haskell Wikibook.”

指出它有一章相当全面地讲 laziness
IO evaluates the Haskell heap : in pictures原评论 ↗
推荐swift · 2011-04

“Another (much more detailed) discussion of it can be found here: Haskell Wikibook”

指向它更详细地讨论 one-hole contexts 与 zippers
The Algebra of Data and the Calculus of Mutation原评论 ↗
看全部 20 条 →
推荐alxv · 2011-11

“I know there is a good chapter about it in the Haskell Wikibook.”

回忆它里面有一章讲 Cont monad 讲得好
Roy — small functional language that compiles to JavaScript原评论 ↗
推荐Figs · 2012-02

“the version of List's >>= function is much easier to understand here than the one I pulled out of GHC's library code.”

称它对 list 的 >>= 解释比 GHC 库源码易懂得多
The Day Python Embarassed Imperative Programming原评论 ↗
推荐davidcuddeback · 2012-08

“and an introduction to category theory as it applies to Haskell [4].”

列出它作为 Haskell 视角下范畴论的入门
The category design pattern原评论 ↗
推荐dllthomas · 2014-04

“No one's mentioned the wikibook. I've not read through it much, but a colleague found it far more readable than LYAH”

提醒别漏了它,同事觉得比 LYAH 更易读
GHC 7.8.1 released原评论 ↗
推荐codygman · 2015-02

“I highly recommend "You could have invented Monads", it helped me a lot. I also recommend the Haskell Wikibook:”

在一篇 monad 教程之外,也推荐它
Learn You a Haskell for Great Good (2008)原评论 ↗
推荐tjradcliffe · 2015-02

“Someone on HN suggested this guide to Haskell a few days ago: Haskell Wikibook I'm finding it the first useful introduction to the language I've encountered.”

称它是自己遇到的第一份真正有用的 Haskell 入门
She: The Strathclyde Haskell Enhancement原评论 ↗
推荐clusterfoo · 2015-04

“p.s: Not being a Haskell guy, I had to use these resources to figure out wtf was going on; they might help you too:”

说自己不懂 Haskell 时靠它弄明白了状况
Atomic, Composable Financial Transactions: The Power of Haskell's Purity and ADT原评论 ↗
推荐jarcane · 2015-07

“The Wikibook[1] does a pretty good example of explaining what this looks like”

称它用例子把 do notation 解释得不错
Monads in JavaScript原评论 ↗
推荐xiler · 2015-08

“Open books like the Haskell wikibook [1] tend to be concise since there's no need to create filler content.”

说开源书如它不必灌水,所以简洁
Ask HN: Books with a high signal to noise ratio?原评论 ↗
推荐meowface · 2015-12

“This also helped: Haskell Wikibook”

说它也帮自己理解了 functor 和 monad
Reflecting on Haskell in 2015原评论 ↗
推荐mrkgnao · 2017-03

“Functors and applicative functors precede monads in (pretentious cough) modern Haskell pedagogy, as championed by (thankfully non-pretentious) Learn You A Haskell, as well as the Haskell Wikibook. Reading the relevant chapters is a good start.:)”

说现代教法先学 functor 和 applicative 再学 monad,读它相关章节
Haskell Concepts in One Sentence原评论 ↗
推荐aban · 2017-03

“So, you may want to read these pages from Wikibooks in this order:”

建议按顺序读它的 Functor、Applicative、Monad 页面
Haskell Concepts in One Sentence原评论 ↗
推荐scottmsul · 2017-03

“The following is a really good reference for understanding not just the difference between functors, applicatives, and monads, but also why each is more powerful than the one before it.”

称它是理解 functor、applicative、monad 区别的好参考
Haskell Concepts in One Sentence原评论 ↗
推荐danidiaz · 2017-04

“The Haskell Wikibook is an underrated resource: Haskell Wikibook”

称它是被低估的资源,不靠范畴论也能懂 monad
From Monads to Machine Code原评论 ↗