First steps in Haskell for programmers new to functional style. Learn expressions, types, pure functions, GHCi errors, local helpers, and branching while writing small runnable programs.
Overview
Syllabus
- Unit 1: Your First Haskell Program
- Print Your First Greeting
- Sequencing Three Lines of Output
- Unit 2: Core Types and Literals
- Printing Numbers with Their Types
- Showing Text and Characters
- Building a Complete Profile
- Unit 3: Defining Pure Functions
- Build Your First Tripling Function
- Two Functions One Number Shape
- Averaging Two Numbers Together
- Unit 4: Inspecting Types and Errors
- Repairing a Type Mismatch
- Decoding the Number Constraint
- Unit 5: Let and Where Bindings
- Naming Steps to Find Area
- Stacking Up the Cylinder Volume
- Unit 6: If Then Else Expressions
- Flipping Negatives Into Positives
- Choosing the Right Fare Label
- Unit 7: Multiway Choices with Guards
- Finish the Grading Ladder
- Sorting BMI into Clear Categories