Skip to Content
Effective Haskell
book

Effective Haskell

by Rebecca Skinner
July 2023
Intermediate to advanced
670 pages
17h 13m
English
Pragmatic Bookshelf
Content preview from Effective Haskell

Chapter 4Creating New Types

In the last chapter, you learned the basics of how Haskell’s type system works, and you wrote some programs that made use of some of the common predefined types available in the standard library. Those fundamentals are an important building block to making effective use of Haskell’s type system, but the real power comes in creating your own types that let you precisely describe the structure and behavior of the data in your application. In this chapter, you’ll learn how to create your own types that accurately represent the structure of your data. Later, here, you’ll learn to go a step further and describe the behavior of your types as well.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Grokking Functional Programming

Grokking Functional Programming

Michal Plachta
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9798888650400Errata Page