1 Functions and types
This chapter covers
- Using the Glasgow Haskell Compiler (GHC) interpreter to solve problems
- Writing simple functional programs with pure functions and I/O actions
- Using a type-based approach to design programs
- Using GHC extensions for greater code readability
- Efficient processing of text data
Functional programming differs significantly from imperative programming in the ways we design programs. Typing discipline adds some specifics, too. When we code in Haskell, we think in a special way: in terms of the given data and the desired processing results (with both sides expressed by types), instead of focusing on the steps we should execute to get those results.
In this chapter, we’ll see several examples of how to solve ...
Get Haskell in Depth now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.