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

Understanding How Programs Are Evaluated

Throughout this chapter you’ve learned how to express computations with Haskell, and you’ve written several small working programs without thinking too much about how the computer will actually run the programs that you’ve written. If you have experience writing programs in other languages, you might have an intuition about how applications are executed, but Haskell’s execution model is a bit different than what you might have run into in other languages, because it’s a lazy language. More specifically, Haskell uses a form of laziness known as call by need. This means that when you define an expression in Haskell it won’t be evaluated until the value is actually needed. The expressions that haven’t been ...

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