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

Mindmap

Making Our Own Types and Typeclasses

Andres Diaz Spanisch

Inhalt der Mindmap

Making Our Own Types and Typeclasses

  1. Algebraic data types

    • Bool, Int, Char, Maybe, etc.
  2. How do we make our own?

    • one way is to use the data keyword to define a type.
  3. Type parameters

    • A value constructor can take some values parameters and then produce a new value
      • For instance, the Car constructor takes three values and produces a car value
  4. Derived instances

    • A type can be made an instance of a typeclass if it supports that behavior.

Informationen

Beschreibung
Mindmap am Making Our Own Types and Typeclasses, erstellt von Andres Diaz am 23/09/2018.
Erstellt von
Andres Diaz
Aufrufe
0
Bewertung

Mehr zu Data Types and Typeclasses

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?