Mindmap
MODULES
Inhalt der Mindmap
MODULES
Collection of related functions, types and typeclasses
- The main module loads up the other modules
- The Haskell program use the functions to do something
- The main module loads up the other modules
There could be modules to
- manipulating lists
- concurrent programming
- complex numbers
The main functions that we use in Haskell come from the Prelude module!
To import a module we use: import <module name>
- This should be done on the top of the file, before use any function
You can import modules from GHCI using ... :m + <module name>
Making modules... is the perfect way to split your code up on several files
- In each file you keep functions that have similar purpose
- To make a module just create a file with .hs extension (xxxx.hs)
- At the beginning of the file we define the module name according with the file name.
- To make a module just create a file with .hs extension (xxxx.hs)
- In each file you keep functions that have similar purpose
Bilder und Dateien der Mindmap
Informationen
- Beschreibung
- Mindmap am MODULES, erstellt von Nicolas Medina am 02/09/2018.
- Erstellt von
- Nicolas Medina
- Aufrufe
- 1
- Bewertung
Mehr zu Haskell Modules and Libraries