Mapa mental
Making Our Own Types and Typeclasses
Contenido del mapa
Making Our Own Types and Typeclasses
Algebraic data types
- Bool, Int, Char, Maybe, etc.
How do we make our own?
- one way is to use the data keyword to define a type.
Type parameters
- A value constructor can take some values parameters and then produce a new value
- For instance, the Car constructor takes three values and produces a car value
- A value constructor can take some values parameters and then produce a new value
Derived instances
- A type can be made an instance of a typeclass if it supports that behavior.
Información
- Descripción
- Mapa Mental sobre Making Our Own Types and Typeclasses, creado por Andres Diaz el 23/09/2018.
- Creado por
- Andres Diaz
- Visitas
- 0
- Valoración
Más sobre Data Types and Typeclasses