Mapa mental
Making Types and Typeclasses
Contenido del mapa
Making Types and Typeclasses
data
- keyword for create new data type
- name
- next word defina name of the newtype
- =
- values
- true | false
- | is or
- Circle Float Float Float | Rectangle Float Float Float Float
- more than one value
- values
prompt, don't print shapes
deriving (Show)
- our type makes that type part of the Show typeclases
in Module
- Capital Case
- (..) If you want to export all the value constructors
- Capital Case
Type parameters
- Constructor
- take parameters and produce a new value
- several and differents type values
- Constructor
interface
- define behavior
synonymus
- make more sense to someone reading our code and documentation
Información
- Descripción
- Mapa Mental sobre Making Types and Typeclasses, creado por JUAN DAVID PARDO REINA el 20/03/2019.
- Creado por
- JUAN DAVID PARDO REINA
- Visitas
- 0
- Valoración