null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
13270729
TYPE AND TYPECLASSES - HASKELL
Description
Mapa Mental Capitulo 8
No tags specified
capitulo 8
Mind Map by
FONTALVO ROMERO EDUARDO JOSÉ
, updated more than 1 year ago
More
Less
Created by
FONTALVO ROMERO EDUARDO JOSÉ
over 6 years ago
19
0
0
Resource summary
TYPE AND TYPECLASSES - HASKELL
Data type
type constructor
data nameField = value1 | value 2 | value3
Typeclasses
we can make different types
Keywords
"data" means that we're defining a new data type
The part before the = denotes the type
The parts after the = are value constructors
The | is read as or
data Bool = False | True
Declarations of types
Functions that take the fields as parameters
A value constructor can take some values parameters and then produce a new value.
Value constructor
Value constructors are actually functions that ultimately return a value of a data type
Derived instances
Type synonyms
Recursive data structures
first we create our data type and then we think how it works.
To define what it can act like we use the “deriving” keyword
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
TERP10
macmanuel
Neurotransmisión, Aminoglucósidos e Inhibidores de la síntesis protéica - Farmacología 2015-V.
Christian Vega
Paridad del poder adquisitivo (PPA)
Gerardo Trejo
EL GERENTE COMO PLANIFICADOR Y ESTRATEGA Capítulo 8
FER NOVA
Decreto Nº 66 - Capítulo Vlll
felipe vera
RECONOCIMIENTO DEL PROBLEMA Y BÚSQUEDA DE INFORMACIÓN
aymet milagros alcahuaman torres
Inversiones y financiamiento
Rafael Garcia
Capítulo 8 La escapada
jocs.elaxai
ISO 9001 8.5: MEJORA
diego vargas
Seguridad en los sistemas de información
Kassandra Carbaj
Tipos y clases de tipos en haskell
tooon a
Browse Library