Chapter 3
Exploring Haskell
Section 2
Whitespace, Layout, and Scoping
Haskell is a whitespace-sensitive programming language. It’s worth gaining some comfort with the indentation rules, even though they correspond—for the most part—to the “obvious” way to lay a program out. We’ll relate layout to lexical scoping of names. - Demonstrate different ways of legally (and illegally) indenting “let” bindings - Show rules applied to “where,” “do,” and “case…of” constructs - Learn how to read “brace”-delimited Haskell code