Mindmap
Making Types and Typeclasses
Inhalt der Mindmap
Making Types and Typeclasses
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
- values
prompt, don't print shapes
deriving (Show)
- our type makes that type part of the Show typeclases
in Module
- Capital Case
- (..) If you want to export all the value constructors
- Capital Case
Type parameters
- Constructor
- take parameters and produce a new value
- several and differents type values
- Constructor
interface
- define behavior
synonymus
- make more sense to someone reading our code and documentation
Informationen
- Beschreibung
- Mindmap am Making Types and Typeclasses, erstellt von JUAN DAVID PARDO REINA am 20/03/2019.
- Erstellt von
- JUAN DAVID PARDO REINA
- Aufrufe
- 0
- Bewertung