Developing Web Applications with Haskell and Yesod Safety-Driven Web Development 13430

Паперова книга
13430
04.05
480
2 людини

Все про “Developing Web Applications with Haskell and Yesod Safety-Driven Web Development”

Від видавця

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. You'll work with several samples to explore the way Yesod handles widgets, forms, persistence, and RESTful content. You also get an introduction to various Haskell tools supplement to 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) Use Shakespearean template languages for HTML, CSS, Javascript and output Produce cleaner, more modular code by learning how Yesod monads interact Implement the yesod-form declarative API to build forms on top of widgets Learn how Yesod and Haskell store data session and handle persistence Use techniques to serve an HTML page and a machine-friendly JSON page from the same URL Create reusable components for applications with several Yesod subsites

Зміст

Basics
Chapter 1 : Introduction
Type Safety
Concise
Performance
Modular
A Solid Foundation
Introduction to Haskell
Chapter 2 : Haskell
Terminology
Tools
Language Pragmas
Overloaded Strings
Type Families
Template Haskell
QuasiQuotes
Summary
Chapter 3 : Basics
Hello World
Routing
Handler Function
The Foundation
Running
Resources and Type-Safe URLs
The Scaffolded Site
Development Server
Summary
Chapter 4 : Shakespearean Templates
Synopsis
Types
Syntax
Calling Shakespeare
Other Shakespeare
General Recommendations
Chapter 5 : Widgets
Synopsis
what's in a Widget?
Constructing Widgets
Combining Widgets
Generate IDs
whamlet
Using Widgets
Summary
Chapter 6 : Yesod Typeclass
and Rendering Parsing URLs
defaultLayout
Custom Error Pages
External CSS JavaScript and
Smarter Static Files
Authentication/Authorization
Some Simple Settings
Summary
Chapter 7 : Routing and Handlers
Route Syntax
Dispatch
The Handler Монада
Summary
Chapter 8 : Forms
Synopsis
Kinds of Forms
Types
Converting
Create AForms
Validation
More Sophisticated Fields
Running Forms
i18n
Monadic Forms
Input Forms
Custom Fields
Summary
Chapter 9 : Sessions
Clientsession
Controlling Sessions
Session Operations
Messages
Ultimate Destination
Summary
Chapter 10 : Persistent
Synopsis
Solving the Boundary Issue
Migrations
Uniqueness
Queries
Manipulation
Attributes
Relations
Closer Look at Types
Custom Fields
Persistent: Raw SQL
Integration with Yesod
Summary
Chapter 11 : Deploying Your Webapp
Compiling
Warp
FastCGI
Desktop
CGI on Apache
FastCGI on lighttpd
CGI on lighttpd
Advanced
Chapter 12 : RESTful Content
Request Methods
Representations
Other Request Headers
Stateless
Summary
Chapter 13 : Yesod's Monads
Монада Transformers
The Three Transformers
Example: Database-Driven Navbar
Example: Request Information
Summary
Chapter 14 : Authentication and Authorization
Overview
Authenticate Me
Email
Authorization
Завершення
Chapter 15 : Scaffolding and the Site Template
How to Scaffold
File Structure
widgetFile
defaultLayout
Static Files
Завершення
Chapter 16 : Internationalization
Synopsis
Overview
Message Files
RenderMessage Typeclass
Interpolation
Phrases, Not Words
Chapter 17 : Creating a Підсайт
Hello World
Examples
Chapter 18 : Blog: i18n, Authentication, Authorization, and Database
Chapter 19 : Wiki: Markdown, Chat Підсайт, Event Source
Chapter 20 : JSON Web Service
Server
Client
Глава 21 : Case Study: Sphinx-Based Search
Sphinx Setup
Basic Yesod Setup
Searching
Streaming xmlpipe Output
Full Code
Appendices
Appendix : монада-control
Overview
Intuition
Types
Real Life Examples
Lost State
More Complicated Cases
Appendix : Conduit
Conduits in Five Minutes
Structure of This Chapter
The Resource Монада Transformer
Source
Sinks
Conduit
Buffering
Appendix : Web Application Interface
The Interface
Hello World
Middleware
Appendix : Settings Types
Appendix : http conduit
Synopsis
Concepts
Request
Manager
Response
http and httpLbs
Appendix : xml-conduit
Synopsis
Types
Text.XML
Cursor
xml-hamlet
xml2html

Анотація

Developing Web Applications with Haskell and Yesod Safety-Driven Web Development

Рецензії

0

Всі характеристики

Товар входить до категорії

  • Самовивіз з відділень поштових операторів від 45 ₴ - 80 ₴
  • Доставка поштовими сервісами - тарифи перевізника
Схожі товари
Functional Design: Principles, Patterns, and Practices (Robert C. Martin Series) 1st Edition
269665
Robert C. Martin
890 ₴
Вивчай Erlang в ім'я добра!
15169
5/1
Хеберт Фред
900 ₴
The Go Programming Language
38461
Alan DonovanBrian Kernighan
792 ₴900 ₴
Golang для профи: Создаем профессиональные утилиты, параллельные серверы и сервисы, 3-е изд
255668
Михалис Цукалос
842 ₴990 ₴
The Little Schemer: чудесное функциональное программирование
265510
Дэниел П. ФридманМатиас Феллейзен
990 ₴
Effective Haskell: Solving Real-World Problems with Strongly Typed Functional Programming 1st Edition
256217
Rebecca Skinner
1'200 ₴
Go Crazy: A Fun Projects-based Approach to Golang Programming 1st ed. Edition
275379
Nicolas ModrzykDavid LiJun AkiyamaTony Broyez
1'300 ₴
Изображение квантовых процессов
98288
Боб КокеАлекс Киссинджер
1'950 ₴
Scala Cookbook: Recipes for Object-Oriented and Functional Programming. 2nd Ed.
244787
Alvin Alexander
2'400 ₴