TYPE AND TYPECLASSES - HASKELL

Description

Mapa Mental Capitulo 8
FONTALVO ROMERO EDUARDO JOSÉ
Mind Map by FONTALVO ROMERO EDUARDO JOSÉ , updated more than 1 year ago
FONTALVO ROMERO EDUARDO JOSÉ
Created by FONTALVO ROMERO EDUARDO JOSÉ about 6 years ago
15
0

Resource summary

TYPE AND TYPECLASSES - HASKELL
  1. Data type
    1. type constructor
      1. data nameField = value1 | value 2 | value3
      2. Typeclasses
        1. we can make different types
        2. Keywords
          1. "data" means that we're defining a new data type
            1. The part before the = denotes the type
              1. The parts after the = are value constructors
                1. The | is read as or
                  1. data Bool = False | True
                  2. Declarations of types
                    1. Functions that take the fields as parameters
                      1. A value constructor can take some values parameters and then produce a new value.
                      2. Value constructor
                        1. Value constructors are actually functions that ultimately return a value of a data type
                        2. Derived instances
                          1. Type synonyms
                            1. Recursive data structures
                              1. first we create our data type and then we think how it works.
                                1. To define what it can act like we use the “deriving” keyword
                                Show full summary Hide full summary

                                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
                                Capítulo 8 La escapada
                                jocs.elaxai
                                ISO 9001 8.5: MEJORA
                                diego vargas
                                RECONOCIMIENTO DEL PROBLEMA Y BÚSQUEDA DE INFORMACIÓN
                                aymet milagros alcahuaman torres
                                Seguridad en los sistemas de información
                                Kassandra Carbaj
                                Inversiones y financiamiento
                                Rafael Garcia
                                Tipos y clases de tipos en haskell
                                tooon a