Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Mapa mental

Making Types and Typeclasses

JUAN DAVID PARDO REINA Español

Contenido del mapa

Making Types and Typeclasses

  1. data

    • keyword for create new data type
    • name
      • next word defina name of the newtype
      • =
        • values
          • true | false
          • | is or
          • Circle Float Float Float | Rectangle Float Float Float Float
            • more than one value
  2. prompt, don't print shapes

  3. deriving (Show)

    • our type makes that type part of the Show typeclases
  4. in Module

    • Capital Case
      • (..) If you want to export all the value constructors
  5. Type parameters

    • Constructor
      • take parameters and produce a new value
      • several and differents type values
  6. interface

    • define behavior
  7. synonymus

    • make more sense to someone reading our code and documentation

Información

Descripción
Mapa Mental sobre Making Types and Typeclasses, creado por JUAN DAVID PARDO REINA el 20/03/2019.
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?