Mapa mental
Types and Typeclasses
Contenido del mapa
Types and Typeclasses
Types
- can declare custom types using "data" keyword
- The values can be declared as value constructors
- Value constructors are functions that returns a value of a data type
- Value constructors can be exported in a module
- export all using <data type>(..)
- export any unsing (<value constructor1>,<value constructor2>,)
- Value constructors can be exported in a module
- Value constructors are functions that returns a value of a data type
- The values can be declared as value constructors
- To make the types more redeable can use Record syntax
- { parameterName :: parameterType, ... }
- haskell automatically create functions to get each parameter
- Can receive parameters by type parameters
- Can derive from typeclasses
- Can create synonyms to improve readibility
- Can be parametrized
- can declare custom types using "data" keyword
Typeclasses
Información
- Descripción
- Mapa Mental sobre Types and Typeclasses, creado por ORJUELA GARCIA LUIS HERNANDO el 24/09/2019.
- Creado por
- ORJUELA GARCIA LUIS HERNANDO
- Visitas
- 0
- Valoración
Más sobre Data Types and Typeclasses