Mindmap
Haskell Modules
Inhalt der Mindmap
Haskell Modules
Collection
- Functions
- Types
- Typeclasses
Main Module
- Load other modules
Loosely Coupled
- Do not depend on any other module
Can be imported
- import <module name>
- Functions, types and typeclasses become available for the current namespace
- Can import specific functions
- import <module name> (<function>, ...)
- Or can hide specific ones
- import <module name> hiding (<function>, ...)
- Before any function definition
- import <module name>
Qualified Modules
- Require prefix before every module function use
- import qualified <module name> as <N>
- N stands for a generic name
Useful modules
- Data.List
- Manipulate Haskell lists
- Data.Char
- Manipulate and deal with characters
- Data.Map
- Manipulate Haskell dictionaries
- Data.Set
- Deal with mathematic sets
- Data.List
Can be created
- It's a good practice
- Can hold sub-modules
- import <module>.<sub-module>
- Insert files into directory
- Can export or not functions, types and more
Informationen
- Beschreibung
- Mindmap am Haskell Modules, erstellt von ALVARO ANTONIO STAGG RAMIREZ am 05/10/2021.
- Erstellt von
- ALVARO ANTONIO STAGG RAMIREZ · Okt 2021
- Aktualisiert
- 5 Okt 2021
- Aufrufe
- 1
- Bewertung
Mehr zu Haskell Modules and Libraries