Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • Book
  • © 2022

Practical Haskell

A Real-World Guide to Functional Programming

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

  • Offers a real world guide to programming and web development using Haskell

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

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-8581-7
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 49.99
Price excludes VAT (USA)

This is a preview of subscription content, access via your institution.

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-14
    3. Declaring the Data Model

      • Alejandro Serrano Mena
      Pages 15-61
    4. Increasing Code Reuse

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

      • Alejandro Serrano Mena
      Pages 107-153
    6. Laziness and Infinite Structures

      • Alejandro Serrano Mena
      Pages 155-181
  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-341
    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-436
  5. Domain-Specific Languages

    1. Front Matter

      Pages 437-437
    2. Strong Types for Describing Offers

      • Alejandro Serrano Mena
      Pages 439-482
    3. Interpreting Offers with Attributes

      • Alejandro Serrano Mena
      Pages 483-517
  6. Engineering the Store

    1. Front Matter

      Pages 519-519

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 updated edition includes more modern treatment of Haskell's web framework and APIs.

This book contains excellent coverage of the Haskell ecosystem and supporting tools, including Cabal and Stack for managing projects, HUnit and QuickCheck for software testing, WAI and Elm to develop the back end and front end of 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, Third Edition takes advantage of this to show off the language and what it can do.  Free source code available on the Apress GitHub page for this book.

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.

Keywords

  • Haskell
  • functional
  • programming
  • fundamentals
  • basics
  • code
  • source
  • development
  • software
  • language
  • real world
  • practical

Authors and Affiliations

  • Utrecht, The Netherlands

    Alejandro Serrano Mena

About the author

Alejandro Serrano Mena has more than a decade of experience as a developer, trainer, and researcher in functional programming, with an emphasis on Haskell and related languages. He holds a Ph.D. from Utrecht University on the topic of error message customization in compilers. He's an active member of the community, maintaining a few open-source projects, writing books about Haskell, and collaborating on podcasts and conferences.

Bibliographic Information

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-8581-7
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 49.99
Price excludes VAT (USA)