Mapa mental
Haskell types and typeclasses
Conteúdo do mapa
Haskell types and typeclasses
By Victor Andres Pedraza
Algebraic data types
- use 'data' reserved word
- Define a new data type
- Have contrstructors
- Which are functions
- Export in other modules
- Use them in many parts
- use 'data' reserved word
Record syntax
- Parameters constructor
- Access param values
- DO NOT implement function
- Access param values
- Object with params
- Parameters constructor
Typeclass
- Interface
- Define behavior
- Implement in other type
- Implement behavior
Derived instances
- Show
- Representation
Informações
- Descrição
- Mapa Mental sobre Haskell types and typeclasses, criado por VICTOR ANDRES PEDRAZA LEON em 10-10-2021.
- Criado por
- VICTOR ANDRES PEDRAZA LEON
- Visualizações
- 2
- Avaliação
Mais sobre Data Types and Typeclasses