Mind map
Modules
Map content
Modules
It is a collection of functions, typeclasses and types
Examples of Modules
- Data.List
- Imports functions that works with Lists
- Intersperce
- Intercalate
- Transpose
- Concat
- concatMap
- Imports functions that works with Lists
- Data.Char
- Imports functions that works with Char
- ToUpper
- ToLower
- digitToInt
- IsDigit
- Imports functions that works with Char
- Data.Map
- Imports functions that works with Maps
- Are lists that are used to store key-value pairs
- insert
- size
- Singleton
- Lookup
- Imports functions that works with Maps
- Data.Set
- Imports functions that works with Sets
- Sets are like the ones in mathematics, in Haskell is like a combination between Maps and lists
- fromList
- intersection
- differences
- Union
- Imports functions that works with Sets
- Data.List
Modules can be created
- it is necessary to specify de module name
- In the module definition we mention the functions that will be exported
- Implement the functions within the module
- There are two ways to import a module
- Normal
- import Data.List
- Qualified
- import qualified Data.List as List
- Normal
Information
- Description
- Mind Map on Modules, created by NICOLÁS ALBORNOZ TIBASOZA on 26/03/2019.
- Created by
- NICOLÁS ALBORNOZ TIBASOZA
- Views
- 0
- Rating
More on Haskell Modules and Libraries