Have a personal or library account? Click to login
Haskell Cookbook Cover

Haskell Cookbook

Build functional applications using Monads, Applicatives, and Functors

Paid access
|Sep 2025
Product purchase options

Save time and build fast, functional, and concurrent application using Haskell

Key Features

  • Comprehensive guide for establishing a strong foundation in Haskell and developing pragmatic code
  • Create a full fledged web application using Haskell
  • Work with Lens, Haskell Extensions, and write code for concurrent and distributed applications

Book Description

Haskell is a purely functional language that has the great ability to develop large and difficult, but easily maintainable software.

Haskell Cookbook provides recipes that start by illustrating the principles of functional programming in Haskell, and then gradually build up your expertise in creating industrial-strength programs to accomplish any goal. The book covers topics such as Functors, Applicatives, Monads, and Transformers. You will learn various ways to handle state in your application and explore advanced topics such as Generalized Algebraic Data Types, higher kind types, existential types, and type families. The book will discuss the association of lenses with type classes such as Functor, Foldable, and Traversable to help you manage deep data structures.

With the help of the wide selection of examples in this book, you will be able to upgrade your Haskell programming skills and develop scalable software idiomatically.

What you will learn

  • Use functional data structures and algorithms to solve problems
  • Understand the intricacies of the type system
  • Create a simple parser for integer expressions with additions
  • Build high-performance web services with Haskell
  • Master mechanisms for concurrency and parallelism in Haskell
  • Perform parsing and handle scarce resources such as filesystem handles
  • Organize your programs by creating your own types and type classes

Who this book is for

This book is targeted at readers who wish to learn the Haskell language. If you are a beginner, Haskell Cookbook will get you started. If you are experienced, it will expand your knowledge base. A basic knowledge of programming will be helpful.

Table of Contents

  1. Foundation of Haskell
  2. Getting Functional
  3. Defining Data
  4. Functors, Applicative, and Transformers
  5. More about Monads
  6. Common containers and strings
  7. Working with relational and NoSQL Databases
  8. Working with HTML and Templates
  9. The Snap Framework
  10. Working with Advanced Haskell
  11. Lenses and Prisms
  12. Concurrent and Distributed Programming
https://github.com/packtpublishing/haskellcookbook
PDF ISBN: 978-1-78646-265-7
Publisher: Packt Publishing Limited
Copyright owner: © 2017 Packt Publishing Limited
Publication date: 2025
Language: English
Pages: 396