3 expressions types and parametric polymorphism
Since Haskell is statically typed, it can infer from the expression itself what function types we're using. Specifically, you can skip over function:: a -> b
and define function
directly.
table of contents:
- 3.1 well formed well typed expressions
- 3.2 names and operators
- 3.3 types
- 3.4 polymorphic types
- 3.5 selectors, discriminators, deconstructors
- 3.6 type inference
exercises: 3 exercises