没有合适的资源?快使用搜索试试~ 我知道了~
Developing Web Apps with Haskell and Yesod, 2nd
5星 · 超过95%的资源 需积分: 9 20 下载量 101 浏览量
2015-04-07
22:13:26
上传
评论
收藏 5.13MB PDF 举报
温馨提示
试读
392页
Developing Web Apps with Haskell and Yesod, 2nd
资源推荐
资源详情
资源评论
WEB DEVELOPMENT
Developing Web Apps with Haskell and Yesod
ISBN: 978-1-491-91559-2
US $34.99 CAN $40.99
“
Of all the Haskell Web
Frameworks, Yesod is
the one taking the most
advantage of Haskell's
type safety. This book is
a great reference for that
framework and really
shows the benefits of
such an approach.
”
—Pat Brisbin
Developer at thoughtbot
Twitter: @oreillymedia
facebook.com/oreilly
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 data type
and Web Application Interface (WAI)
■ Output HTML, CSS, and JavaScript with Shakespearean
template languages
■ Get an in-depth 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
Michael Snoyman, the creator of Yesod, has been programming for about 15
years, using Haskell for the past five. He brings ten years of web development
and documentation experience to a wide variety of environments.
Developing Web Apps
with Haskell and Yesod
SECOND
EDITION
Snoyman
Michael Snoyman
Developing
Web Apps with
Haskell
and Yesod
SAFETY-DRIVEN WEB DEVELOPMENT
2nd Edition
Michael Snoyman
Developing Web Apps with
Haskell and Yesod
SECOND EDITION
978-1-491-91559-2
[LSI]
Developing Web Apps with Haskell and Yesod, Second Edition
by Michael Snoyman
Copyright © 2015 Michael Snoyman. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Simon St. Laurent and Allyson MacDonald
Production Editor: Nicole Shelby
Copyeditor: Jasmine Kwityn
Proofreader: Rachel Head
Indexer: Ellen Troutman
Interior Designer: David Futato
Cover Designer: Ellie Volckhausen
Illustrator: Rebecca Demarest
February 2015: Second Edition
Revision History for the Second Edition
2015-02-09: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781491915592 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Developing Web Apps with Haskell and
Yesod, Second Edition, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Part I. Basics
1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Type Safety 1
Concise Code 2
Performance 2
Modularity 3
A Solid Foundation 3
2.
Haskell. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Terminology 5
Tools 6
Language Pragmas 7
Overloaded Strings 8
Type Families 9
Template Haskell 10
QuasiQuotes 12
API Documentation 12
Summary 12
3.
Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Hello, World 13
Routing 14
Handler Function 16
The Foundation 16
iii
剩余391页未读,继续阅读
资源评论
- situxuming2018-04-04书非常清晰,对于学习Haskell的web应用非常有帮助
heheandjinjin
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功