Ebook Portugal Téléchargements Haskell Design Patterns en français 9781783988723

Haskell Design Patterns

Haskell Design Patterns

by Ryan Lemmer

Editeur : Packt Publishing, Limited
ISBN: 9781783988723
Broché: 157
Télécharger les formats: pdf, ePub, mobi, fb2
Taille du fichier: 4 Mb
Date d'affichage: 2020-05-27
TÉLÉCHARGER

La 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.