Ebooks download free epub Haskell Design Patterns Ryan Lemmer (English literature) 9781783988723 DOCX

Haskell Design Patterns

Haskell Design Patterns

by Ryan Lemmer

Publisher: Packt Publishing, Limited
ISBN: 9781783988723
Pages: 157
Format: pdf, ePub, mobi, fb2
File size: 4 Mb
Date posting: 2021-06-18
DOWNLOAD

Description

Design patterns and idioms can widen our perspective by showing us where to look, what to look at, and ultimately how to see what we are looking at. At their best, patterns are a shorthand method of communicating better ways to code (writing less, more maintainable, and more efficient code). At their worst, patterns are abstract ideas, seemingly divorced from everyday programming. This book starts with Haskell 98 and, through the lens of patterns and idioms, investigates the key advances and styles of programming that together make "modern Haskell." Your journey begins with the three pillars of Haskell—higher-order functions, the Type system, and Lazy evaluation. You'll dive into I/O, the problem with Lazy I/O, and a solution in the form of Iteratee-based I/O. You'll then take a look at the hierarchy formed by Functor, Applicative, Arrow, and Monad and see the diverse ways in which these types are composed. You'll see how List, fold, and map are generalized by Foldable and Traversable, which in turn are generalized by functional Lenses. You'll also explore Type and data abstraction more deeply, including RankNTypes, Type Holes, Higher-order kinds, Generalized ADTs, and Datatype Generic Programming. Nearing the end of the book, you'll discover the dark art of asynchronous programming and to finish, you'll investigate higher-level design patterns.