按年被提到
20112015 · 8 次2026
开源书›编程语言·No.86

Developing Web Applications with Haskell and Yesod

用 Haskell 和 Yesod 开发 Web 应用
Michael Snoyman

Yesod 框架作者写的 Haskell Web 开发免费指南

免费阅读 ↗
被推荐 · 30 人首次 2011-06-03 · 最近 2020-10-19许可证 CC BY 4.0
30不同的人
27活跃月份
6有推荐的月份
32讨论串

这本书由 Yesod 框架作者 Michael Snoyman 撰写,介绍如何用 Haskell 和 Yesod 构建 Web 应用,涉及路由、模板(Hamlet 等)、Persistent 数据库访问、表单、认证和 REST 等内容。重点在于让类型系统在 Web 开发里发挥作用,在编译期保证更多正确性。它既是教程也是框架文档,随 Yesod 版本更新,也有 O'Reilly 的印刷版。

HN 为什么推荐它

HN 上的人把它当作 Yesod 和 Haskell Web 开发的权威资料推荐,有人称文档对 Yesod 1.4 仍然够新,适合已熟悉 Haskell 和 Web 开发的人入门;也有评论说它有时落后于框架的最新版本。

难度 4 / 5约 25 小时开放许可
适合谁

已会 Haskell、想做 Web 开发的程序员

读之前最好知道
1Haskell 基础
2Web 开发基础
3monad

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读快速上手部分,把示例应用跑起来
  2. 2接着看路由、模板和 Persistent 数据库部分
  3. 3对 TemplateHaskell 和 QuasiQuotes 不熟的话先补一下
  4. 4留意书与你所用 Yesod 版本的差异,必要时查最新文档

HN 书评

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

“Here is useful information: Developing Web Applications with Haskell and Yesod”

推荐它提供 Yesod 的有用信息
Using Haskell for the web原评论 ↗
推荐dobbsbob · 2014-02

“Yesod has an entire book too Developing Web Applications with Haskell and Yesod though I haven't read it, I assume it covers what you're looking for”

推荐它,推测涵盖数据模型、controller 和 view,自己没读过
Comparing Haskell Web Frameworks原评论 ↗
推荐tel · 2014-02

“Yesod's book [2] is nice too but I tend to find that it always seems a bit out of date.”

称这本 Yesod 书不错,但总觉得有点过时
Comparing Haskell Web Frameworks原评论 ↗
推荐dllthomas · 2014-03

“"Also, how can I talk to MySql or Sqlite?"”

推荐它来看如何从 Haskell 访问 MySQL 或 SQLite
A brief introduction to Haskell, and why it matters原评论 ↗
推荐psibi · 2014-05

“It also comes along with a free online book: Developing Web Applications with Haskell and Yesod”

提到 Yesod 附带免费的在线书
Choosing a Web Framework/Language Combo for the Next Decade原评论 ↗
推荐haxeny1 · 2015-06

“I have been using this site for (yesod 1.4) [Developing Web Applications with Haskell and Yesod and I found the documentation current.”

称用它学 Yesod 1.4,文档是最新的
Fighting spam with Haskell原评论 ↗
看全部 20 条 →
推荐chrisgw · 2015-11

“It's a pretty good introduction to Haskell web development for people who are already familiar with both web development and Haskell.”

推荐它作为 Haskell Web 开发入门,适合已懂两者的人
Haskell Web Development: A Freely Available Book原评论 ↗
引用gregwebs · 2011-06

“Hack is certainly usable, although I would consider it deprecated in favor of WAI (mostly for performance reasons): Developing Web Applications with Haskell and Yesod”

引用它说明 Hack 可用但性能上已被 WAI 取代
Clack: Common Lisp Web Application Env (ala WSGI, Rack, Plack, Ring, WSAPI, etc)原评论 ↗
引用jerf · 2011-09

“Hamlet [1] has me sort of tempted as it is so close to what I write anyhow.”

称 Hamlet 贴近自己平时写的东西,有些心动
Break Google原评论 ↗
引用jmillikin · 2011-10

“Hamlet embeds markup directly into the Haskell source code using quasiquotation.”

说明 Hamlet 用 quasiquotation 把标记嵌入 Haskell 源码
A simple image hosting site written in Haskell原评论 ↗
引用danieldk · 2011-12

“Persistent provides type-safe database access:”

指出 Persistent 提供类型安全的数据库访问
Is Haskell a Good Choice for Web Applications? (2009)原评论 ↗
引用cies · 2012-04

“As explained before in this thread "shakespear-text" is the plain-ERB of Yesod.”

说明 shakespeare-text 相当于 Yesod 的 plain ERB
Yesod 1.0 - a robust, friendly, high performance web framework for Haskell 原评论 ↗
引用dons · 2012-09

“A new book by O'Reilly covers Yesod”

告知 O'Reilly 新出了一本讲 Yesod 的书
Why I went from Python to Go (and not node.js)原评论 ↗
引用pilgrim689 · 2013-03

“By default, it relies on QuasiQuotes and TemplateHaskell a lot [1]”

指出 Yesod 默认大量依赖 QuasiQuotes 和 TemplateHaskell
Web Framework Benchmarks原评论 ↗
引用Tyr42 · 2014-06

“Oh, I thought this was the already existing Hamlet language.”

误以为这是已有的 Hamlet 语言
Hamlet – Simple and powerful reactive templating原评论 ↗
引用mark_l_watson · 2014-07

“I am probably better off using Yesod's REST support”

打算改用 Yesod 的 REST 支持
Rest – A Haskell REST framework原评论 ↗
引用cordite · 2015-02

“I don't think it would be as easy as what hamlet [1] looks like”

觉得做不到 Hamlet 那样简洁
C++ named operators原评论 ↗
引用chrisdotcode · 2015-02

“If you're used to only programming in dynamic languages, it can be a shock, but yes, a good type system can do things you never thought possible.”

说明好的类型系统能做到只用动态语言想不到的事
The New Haskell.org原评论 ↗
引用codygman · 2015-03

“Here is a Yesod example[4] that uses Auth.”

举一个用 Auth 的 Yesod 例子
High-Performance Log Parsing in Haskell: Part One原评论 ↗
引用munro · 2015-07

“Or build a separate language like Haskell's Hamlet [1], or Python's Jinja [2].”

把 Hamlet 与 Jinja 并列为独立的模板语言
Elm for the Front End原评论 ↗