Ajude a dar forma ao GoConqr. O que a gente deve adicionar?

Mapa mental

TYPE AND TYPECLASSES - HASKELL

FONTALVO ROMERO EDUARDO JOSÉ Espanhol

Conteúdo do mapa

TYPE AND TYPECLASSES - HASKELL

  1. Data type

    • type constructor
    • data nameField = value1 | value 2 | value3
  2. Typeclasses

    • we can make different types
  3. Keywords

  4. "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
  5. Declarations of types

  6. Functions that take the fields as parameters

    • A value constructor can take some values parameters and then produce a new value.
  7. Value constructor

    • Value constructors are actually functions that ultimately return a value of a data type
  8. Derived instances

  9. Type synonyms

  10. Recursive data structures

  11. 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

Informações

Descrição
Mapa Mental Capitulo 8
Criado por
FONTALVO ROMERO EDUARDO JOSÉ · abr 2018
Atualizado
19 set 2018
Visualizações
50
Tags
capitulo 8
Avaliação

Mais sobre Data Types and Typeclasses

Fale Conosco

Sobre o que é sua mensagem?

O que a gente deve adicionar?