a type where we specify the shape of each of the elements
- make our own data type using the keyword data
Back
pattern matching
Front
specify patterns to which some data should conform and then checking to see if it does and deconstructing the data according to those patterns
Back
deriving show
Front
Haskell doesn't know how to represent our data type as a string and cannot print value in command line
- show function makes our data type part of the show type class and gets the string representation of the value
Back
guarded equations
Front
ways of testing whether some property or value is true or false
- similar to an if statement