Mapa mental
Modules
Conteúdo do mapa
Modules
collection of
- types
- related functions
- typeclasses
A program in haskell is based in a collection of modules
- use functions defined in these to perform something
- Functions can be used several times
- use functions defined in these to perform something
Haskell Standard library split in 4 modules
- Data.List
- Provides useful functions for editing lists
- Intercalate
- Transpose
- Concat
- intersperse
- Provides useful functions for editing lists
- Data.Char
- Exports functions that deal with
- Islower
- IsDigit
- IsMark
- IsNumber
- Exports functions that deal with
- Data.Map
- lists that are used to store key-value pairs where ordering doesn't matter
- FromList
- Empty
- lists that are used to store key-value pairs where ordering doesn't matter
- Data.Set
- They have to be called using the import command before defining the functions
- all functions that have in a module are available when we imported them
- Offers mathematical sets where all its elements are unique
- FromList
- intersection
- difference
- They have to be called using the import command before defining the functions
- Data.List
it's good practice to take functions and types that work towards a similar purpose and put them in a module
- allow make more easily reuse those functions in other programs by just importing your module
Informações
- Descrição
- Mapa Mental sobre Modules, criado por HERRERA BOHORQUEZ JAVIER FELIPE em 08-10-2020.
- Criado por
- HERRERA BOHORQUEZ JAVIER FELIPE
- Visualizações
- 0
- Avaliação
Mais sobre Haskell Modules and Libraries