School of Expression example code
This page contains the accompanying software to the Haskell School of Expression textbook by
Paul Hudak. Here's the complete list of the code in the order of
chapters:
- Problem Solving, Programming, and Calculation
- A Module of Shapes: Part I
- Simple Graphics (Snowflake)
- Shapes II: Drawing Shapes
- Polymorphic and Higher-Order Functions
- Shapes III: Perimeters of Shapes
- Trees
- A Module of Regions
- More About Higher-Order Functions
- Drawing Regions
- Proof by Induction
- Qualified Types
- A Module of Simple Animations
- Programming With Streams (Memoization)
- A Module of Reactive Animations
- Communicating With the Outside World
- Rendering Reactive Animations
- Higher-Order Types
- An Imperative Robot Language
- Functional Music Composition
- Interpreting Functional Music
- From Performance to MIDI
- A Tour of the PreludeList Module
- A Tour of Haskell's Standard Type Classes
- Appendix A. Built-in Types Are Not Special
- Appendix B. Pattern-Matching Details
Some chapters contain incomplete code fragments and are not meant to
be loaded by GHCi. These are provided as .txt files.
The remaining files are Haskell literate source code (.lhs). You
may load them into the latest version of
Haskell Platform.
Double-click should do the loading automatically on Windows machines,
otherwise you may navigate down to the directory of this document and then
open the Haskell modules from there.
Update Notice (Aug 2014):