Chapter 2
Getting Started with Haskell
Section 5
Building Your Own Data Structures
If you're worried that being a "strongly typed" language meant that Haskell's types would be restrictive, never fear! In this video, we'll see how to define not just synonyms, but new types, including recursive ones! - Show how to define synonyms for existing types - Create a basic Algebraic Data Type, similar to "Enum" in other languages - Create a more complex ADT with parameters and recursion