Skip to main content
  • Book
  • © 2019

Practical Haskell

A Real World Guide to Programming

Apress
  • Includes data science applications such as data mining, monads, algorithms, and parallelization

  • A real world guide to programming and web development using Haskell

  • Covers functional programming that is of growing importance to developers today

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (17 chapters)

  1. Front Matter

    Pages i-xxii
  2. First Steps

    1. Front Matter

      Pages 1-1
    2. Going Functional

      • Alejandro Serrano Mena
      Pages 3-15
    3. Declaring the Data Model

      • Alejandro Serrano Mena
      Pages 17-62
    4. Increasing Code Reuse

      • Alejandro Serrano Mena
      Pages 63-107
    5. Using Containers and Type Classes

      • Alejandro Serrano Mena
      Pages 109-155
    6. Laziness and Infinite Structures

      • Alejandro Serrano Mena
      Pages 157-182
  3. Data Mining

    1. Front Matter

      Pages 183-183
    2. Knowing Your Clients Using Monads

      • Alejandro Serrano Mena
      Pages 185-227
    3. More Monads: Now for Recommendations

      • Alejandro Serrano Mena
      Pages 229-268
    4. Working in Several Cores

      • Alejandro Serrano Mena
      Pages 269-297
  4. Resource Handling

    1. Front Matter

      Pages 299-299
    2. Dealing with Files: IO and Conduit

      • Alejandro Serrano Mena
      Pages 301-342
    3. Building and Parsing Text

      • Alejandro Serrano Mena
      Pages 343-378
    4. Safe Database Access

      • Alejandro Serrano Mena
      Pages 379-408
    5. Web Applications

      • Alejandro Serrano Mena
      Pages 409-437
  5. Domain Specific Languages

    1. Front Matter

      Pages 439-439
    2. Strong Types for Describing Offers

      • Alejandro Serrano Mena
      Pages 441-486
    3. Interpreting Offers with Attributes

      • Alejandro Serrano Mena
      Pages 487-521
  6. Engineering the Store

    1. Front Matter

      Pages 523-523

About this book

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 and Stack for managing projects, HUnit and QuickCheck for software testing, the Spock framework for developing web applications, Persistent and Esqueleto for database access, and parallel and distributed programming libraries.

You’ll see how functional programming is gathering momentum, allowing you to express yourself in a more concise way, reducing boilerplate, and increasing the safety of your code. Haskell is an elegant and noise-free pure functional language with a long history, having a huge number of library contributors and an active community. This makes Haskell the best tool for both learning and applying functional programming, and Practical Haskell takes advantage of this to show off the language and what it can do.

What You Will Learn

  • Get started programming with Haskell
  • Examine the different parts of the language
  • Gain an overview of the most important libraries and tools in the Haskell ecosystem
  • Apply functional patterns in real-world scenarios
  • Understand monads and monad transformers
  • Proficiently use laziness and resource management

Who This Book Is For

Experienced programmers who may be new to the Haskell programming language. However, some prior exposure to Haskell is recommended. 


Authors and Affiliations

  • Utrecht, The Netherlands

    Alejandro Serrano Mena

About the author

Alejandro Serrano Mena is working towards his PhD thesis in the Software Technology group in Utrecht University. He is passionate about functional programming, and has been coding Haskell for personal and professional projects for more than five years. During his college years he was active in an association promoting functional languages among students, giving talks and helping programmers get started in the functional paradigm. In 2011 he took part in the Google Summer of Code program, enhancing the Haskell plug-in for the popular development environment Eclipse. His current position involves research for enhancing the way in which developers get feedback and interact with strong type systems such as Haskell's.

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access