Part I: First Steps
1. Going Functional
2. Declaring the Data Model
3. Reusing Code through Lists
4. Using Containers and Type Classes
5. Laziness and Infinite Structures
Part II: Data Mining
6. Knowing Your Clients Using Monads
7. More Monads: Now for Recommendations
8. Parallelizing the Execution
Part III: Resource Handling
9. Dealing with Files: IO and Conduit
10. Builders and Parsers
11. Safe Database Access
12. Web Applications
Part IV: Domain Specific Languages
13. Strong Types
14. Attribute Grammars
Part V: Engineering the Store
15. Documenting, Testing, and Verifying
16. Architecting Your Application
Beginning Haskell provides a broad-based introduction to the Haskell language, its libraries and environment, and to the functional programming paradigm that is fast growing in importance in the software industry. The book takes a project-based approach to learning the language that is unified around the building of a web-based storefront. Excellent coverage is given to the Haskell ecosystem and supporting tools. These include the Cabal build tool for managing projects and modules, the HUnit and QuickCheck tools for software testing, the Scotty framework for developing web applications, Persistent and Esqueleto for database access, and also parallel and distributed programming libraries.
Functional programming is gathering momentum, allowing programmers to express themselves in a more concise way, reducing boilerplate and increasing the safety of code. Indeed, mainstream languages such as C# and Java are adopting features from functional programming, and from languages implementing that paradigm. Haskell is an elegant and noise-free pure functional language with a long history, having a huge number of library contributors and an active community. This makes Haskell the best tool for both learning and applying functional programming, and Beginning Haskell the perfect book to show off the language and what it can do. Takes you through a series of projects showing the different parts of the language.
Provides an overview of the most important libraries and tools in the Haskell ecosystem.
Teaches you how to apply functional patterns in real-world scenarios.
Beginning Haskell provides a project-based introduction to Haskell, its use in creating domain-specific languages, to ecosystem elements such as the Cabal build tool and the QuickCheck testing tool, and to the very latest libraries such as Conduit for data streaming, Cloud Haskell for distributed computing, and the Scotty web framework.