Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Haskell Cookbook

You're reading from   Haskell Cookbook Build functional applications using Monads, Applicatives, and Functors

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781786461353
Length 396 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Yogesh Sajanikar Yogesh Sajanikar
Author Profile Icon Yogesh Sajanikar
Yogesh Sajanikar
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Foundations of Haskell FREE CHAPTER 2. Getting Functional 3. Defining Data 4. Working with Functors, Applicatives, and Monads 5. More about Monads 6. Working with Common Containers and Strings 7. Working with Relational and NoSQL Databases 8. Working with HTML and Templates 9. Working with Snap Framework 10. Working with Advanced Haskell 11. Working with Lens and Prism 12. Concurrent and Distributed Programming in Haskell

What this book covers

Chapter 1, Foundations of Haskell, introduces you to Haskell and helps you setup the environment for Haskell using the stack as a tool. In this chapter, you will write your first Haskell program, and then analyze its parts.

Chapter 2, Getting Functional, warms you up to Haskell by introducing recursion, maps, filters, and folds. It ends up by implementing a prime sieve.

Chapter 3, Defining Data, explores the rich data types that Haskell provides. You will be exposed to product and sum types. This chapter further introduces standard type classes in Haskell.

Chapter 4, Working with Functors, Applicatives, and Monads, dives deeper into Haskell by exploring the rich type classes and their instances. The recipes in this chapter allow the reader to build their own monad, and introduces IO monad.

Chapter 5, More about Monads, builds on the previous chapter by further creating and using monad transformers, and finally building a parser with Attoparsec.

Chapter 6, Working with Common Containers and Strings, looks at common containers and introduces Foldable and Traversals. In this chapter, you will also cook your own container and test it using Quickcheck. This chapter also looks at an alternate representation of String, that is, Text and ByteString.

Chapter 7, Working with Relational and NoSQL Databases, uses the Haskell based model declaration template and queries using persistent library. We will also use redis to work with NoSQL databases.

Chapter 8, Working with HTML and Templates, works with the Heist template framework along with the Blaze HTML library to create composable HTML documents.

Chapter 9, Working with Snap Framework, explores various web application development aspects, such as routing, templating, authentication, and sessions using the Snap Framework.

Chapter 10, Working with Advanced Haskell, introduces you to advanced concepts such as Existentially Quantified Type, Rank-N-Type, type family, and GADT.

Chapter 11, Working with Lens and Prism, explores the lens library to look at the concept of Lens and Prism. This chapter explains the concept of lens by building one itself. The rest of the chapter explains rich features of the Lens library.

Chapter 12, Concurrent and Distributed Programming in Haskell, introduces the building blocks of concurrent programming, such as IORef, MVar, and STM. The later part introduces Cloud Haskell to create distributed applications.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime