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

Mindmap

Types and Typeclasses

ORJUELA GARCIA LUIS HERNANDO Spanisch

Inhalt der Mindmap

Types and Typeclasses

  1. Types

    • can declare custom types using "data" keyword
      • The values can be declared as value constructors
        • Value constructors are functions that returns a value of a data type
          • Value constructors can be exported in a module
            • export all using <data type>(..)
            • export any unsing (<value constructor1>,<value constructor2>,)
    • To make the types more redeable can use Record syntax
      • { parameterName :: parameterType, ... }
      • haskell automatically create functions to get each parameter
    • Can receive parameters by type parameters
    • Can derive from typeclasses
    • Can create synonyms to improve readibility
      • Can be parametrized
  2. Typeclasses

Informationen

Beschreibung
Mindmap am Types and Typeclasses, erstellt von ORJUELA GARCIA LUIS HERNANDO am 24/09/2019.
Aufrufe
0
Bewertung

Mehr zu Data Types and Typeclasses

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?