Cargando…

Practical Haskell : a real world guide to programming /

Get a practical, hands-on 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. This book contains excellent coverage of the Haskell ecosystem and supporting tools, include Cabal an...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Mena, Alejandro Serrano (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [New York] : Apress, [2019]
Edición:Second edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Intro; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part I: First Steps; Chapter 1: Going Functional; Why Haskell?; Why Pure Functional Programming?; Why Strong Static Typing?; The Haskell Ecosystem; The History of Haskell; Your Working Environment; Installing on Windows or Mac OS X; Installing on Linux; Installing on Linux from Source; First Steps with GHCi; The Time Machine Store; Summary; Chapter 2: Declaring the Data Model; Characters, Numbers, and Lists; Characters; Numbers; Strings; Lists; Creating a New Project
  • Creating a Project with CabalCreating a Project with Stack; Understanding Modules; Cabal and Stack; Defining Simple Functions; Creating a Simple Function; Specifying the Function's Type; Developing a Robust Example; Returning More Than One Value; Working with Data Types; Pattern Matching; Simple Patterns; Lists and Tuples; Guards; View Patterns; Records; Creation and Use; The Default Values Idiom; Summary; Chapter 3: Increasing Code Reuse; Parametric Polymorphism; Functions As Parameters; Higher-Order Functions; Anonymous Functions; Partial Application of a Function; More on Modules
  • Module ImportsSmart Constructors and Views; Diving into Lists; Folds; Lists and Predicates; Lists Containing Tuples; List Comprehensions; Haskell Origami; Summary; Chapter 4: Using Containers and Type Classes; Using Packages; Managing Dependencies; Building Packages; Building Packages with Cabal; Building Packages with Stack; Obtaining Help; Containers: Maps, Sets, Trees, Graphs; Maps; Sets; Trees; Graphs; Ad Hoc Polymorphism: Type Classes; Declaring Classes and Instances; Built-in Type Classes; Binary Trees for the Minimum Price; Step 1: Simple Binary Trees; Step 2: Polymorphic Binary Trees
  • Step 3: Binary Trees with Monoidal CacheContainer-Related Type Classes; Functors; Foldables; Summary; Chapter 5: Laziness and Infinite Structures; An Infinite Number of Time Machines; Lazy Evaluation Model; Understanding Evaluation in Haskell; Problems with Laziness; Pattern Matching and Laziness; Profiling with GHC; Strictness Annotations; Summary; Part II: Data Mining; Chapter 6: Knowing Your Clients Using Monads; Data Mining; Implementing K-means; Lenses; Discovering Monads; Watching Out for Incomplete Data; Combinators for State; Dissecting the Combinators; do Notation; Monad Laws
  • Different Sorts of StateState and Lenses; Reader, Writer, and RWS; Mutable References with ST; Summary; Chapter 7: More Monads: Now for Recommendations; Returning More Than One Value; The List Monad; A New View Over Monads; Failures and Alternatives; Association Rules Learning; Flattening Values into Transactions; The Apriori Algorithm; Search Problems; Paths in a Graph; The Logic Monad; Monads and Lists Redux; Combining Values Under a Monad; Monad Comprehensions; Combining Monads; Monad Transformers; Monad Classes; Summary; Chapter 8: Working in Several Cores