Developing Web Apps with Haskell and Yesod: Safety-Driven Web Development, 2/e (Paperback)

Michael Snoyman

  • 出版商: O'Reilly
  • 出版日期: 2015-03-24
  • 定價: $1,255
  • 售價: 9.5$1,192
  • 貴賓價: 9.0$1,130
  • 語言: 英文
  • 頁數: 396
  • 裝訂: Paperback
  • ISBN: 1491915595
  • ISBN-13: 9781491915592
  • 相關分類: Functional-programming
  • 立即出貨

買這商品的人也買了...

相關主題

商品描述

This fast-moving guide introduces web application development with Haskell and Yesod, a potent language/framework combination that supports high-performing applications that are modular, type-safe, and concise. Fully updated for Yesod 1.4, this second edition shows you how Yesod handles widgets, forms, persistence, and RESTful content. Author Michael Snoyman also introduces various Haskell tools to supplement your basic knowledge of the language.

By the time you finish this book, you’ll create a production-quality web application with Yesod’s ready-to-use scaffolding. You’ll also examine several real-world examples, including a blog, a wiki, a JSON web service, and a Sphinx search server.

  • Build a simple application to learn Yesod’s foundation datatype and Web Application Interface (WAI)
  • Output HTML, CSS, and Javascript with Shakespearean template languages
  • Get an indepth look at Yesod’s core monads for producing cleaner, more modular code
  • Probe Yesod’s internal workings: learn the request handling process for a typical application
  • Build forms on top of widgets by implementing the yesod-form declarative API
  • Learn how Yesod and Haskell handle persistence and session data
  • Serve an HTML page and a machine-friendly JSON page from the same URL

商品描述(中文翻譯)

這本快速指南介紹了使用Haskell和Yesod進行網絡應用開發的方法,這是一種強大的語言/框架組合,支持高性能、模塊化、類型安全和簡潔的應用程序。第二版完全更新至Yesod 1.4,展示了Yesod如何處理小部件、表單、持久化和RESTful內容。作者Michael Snoyman還介紹了各種Haskell工具,以補充您對該語言的基本知識。

通過閱讀本書,您將能夠使用Yesod的現成脚手架創建一個生產質量的網絡應用程序。您還將研究幾個實際示例,包括博客、維基、JSON網絡服務和Sphinx搜索服務器。

本書內容包括:
- 構建一個簡單的應用程序,了解Yesod的基礎數據類型和Web應用程序接口(WAI)
- 使用Shakespeare模板語言輸出HTML、CSS和Javascript
- 深入研究Yesod的核心monad,以生成更清晰、更模塊化的代碼
- 探索Yesod的內部運作:了解典型應用程序的請求處理過程
- 通過實現yesod-form聲明式API,在小部件之上構建表單
- 學習Yesod和Haskell如何處理持久化和會話數據
- 從同一個URL提供HTML頁面和機器友好的JSON頁面

這本書將幫助您快速掌握使用Haskell和Yesod進行網絡應用開發的技能。無論您是初學者還是有經驗的開發人員,都能從中獲得實用的知識和技巧。