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

Reading Type Errors

One of the most beneficial aspects of Haskell’s type system is in its ability to generate type errors. Errors might sound like a bad thing, but Haskell’s type errors help you refactor your code more quickly and find problems with your program early on in the development cycle before your code gets to users. In this section, you’ll see some simple type errors and learn how to read the compiler’s output and use it to fix errors in your program. Haskell type errors can grow quite long and become complex to read as you introduce more features of the type system into your program. For now, we’ll start out with some minimal examples, and throughout this book we’ll return to type errors that might come up as you’re using new features ...

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