Cargando…

Haskell Cookbook.

Save time and build fast, functional, and concurrent application using Haskell About This Book 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...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Sajanikar, Yogesh
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2017.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Foundations of Haskell; Introduction; Getting started with Haskell; How to do it ... ; How it works ... ; Dissecting Hello World; There's more ... ; Working with data types; How to do it ... ; How it works ... ; There's more ... ; Working with pure functions and user-defined data types; Getting ready; How to do it ... ; How it works ... ; Source formatting; Working with list functions; Getting ready; How to do it ... ; How it works ... ; List creation; Enumerated list.
  • Head and tail of a listOperations on a list; Indexed access; Checking whether an element is present; Pattern matching on list; List concatenation; Strings are lists; There's more ... ; Chapter 2: Getting Functional; Introduction; Working with recursive functions; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Reversing a list
  • Recursive worker function pattern; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Creating maps and filters; Getting ready; How to do it ... ; How it works ... ; Map function; Filter function; There's more ...
  • Working with laziness and recursionGetting ready; How to do it ... ; How it works ... ; Working with folds; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Sorting a list; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Implementing merge sort; Getting ready; How to do it ... ; How it works ... ; Implementing Eratosthenes Sieve; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Chapter 3: Defining Data; Introduction; Defining a product type; Getting ready; How to do it ... ; How it works ... ; Defining a sum type; Getting ready; How to do it ...
  • How it works ... Defining a binary tree and traversing it; Getting ready; How to do it ... ; How it works ... ; Defining data with functions; Getting ready; How to do it ... ; How it works ... ; Using Maybe; Getting ready; How to do it ... ; How it works ... ; Using Either; Getting ready; How to do it ... ; How it works ... ; Working with type classes; Getting ready; How to do it ... ; How it works ... ; Working with Monoid; Getting ready; How to do it ... ; How it works ... ; Chapter 4: Working with Functors, Applicatives, and Monads; Introduction; Working with Functors; How to do it ... ; How it works ...
  • Binary tree as FunctorHow to do it ... ; How it works ... ; Working with Applicatives; How to do it ... ; How it works ... ; Binary tree as Applicative; How to do it ... ; How it works ... ; Working with monad; How to do it ... ; How it works ... ; There's more ... ; List as monad; How to do it ... ; How it works ... ; Working with IO monad; How to do it ... ; How it works ... ; Writing INI parser; How to do it ... ; How it works ... ; Errors and exception handling; How to do it ... ; How it works ... ; Chapter 5: More about Monads; Introduction; Writing a State Monad; How to do it ... ; How it works ...