Mind map
Haskell Modules
Map content
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
Information
- Description
- Mind Map on Haskell Modules, created by ALVARO ANTONIO STAGG RAMIREZ on 05/10/2021.
- Created by
- ALVARO ANTONIO STAGG RAMIREZ · Oct 2021
- Updated
- Oct 5, 2021
- Views
- 1
- Rating
More on Haskell Modules and Libraries