Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Mindmap

Making Types and Typeclasses

JUAN DAVID PARDO REINA Spanisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am Making Types and Typeclasses, erstellt von JUAN DAVID PARDO REINA am 20/03/2019.
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?