Mapa mental
Modules
Contenido del mapa
Modules
Relationated Collection
- Functions
- All contained become global
- Especiffic functions
- import <module_name> (function1, function2 , ... )
- Without some functions
- import <module_name> hiding (func1,func2)
- In case of functions with the same name
- import qualified <module_name>
- <module.name>.function_needed
- import <module_name> as M
- M.function_needed
- import qualified <module_name>
- Types
- Typeclasses
- import <module_name>
- Functions
Solve a problem or necessity
- Can be generic
- Solve and can be used on a bunch of situations
- Can be generic
Separate a program
- loosely coupled
- Don't rely on each other too much
- highly coupled
- Highly dependency of the other(s)
- Each one with one purpose
- loosely coupled
Cool stuff
- Generic work with lists
- Data.List
- genericLength
- genericTake
- genericDrop
- <function>By
- Data.Map
- Dictionaries
- List of tuples
- (key,value)
- fromList
- Takes a list and return a dictionary
- Delete duplicated keys
- Takes a list and return a dictionary
- List of tuples
- Dictionaries
- Data.List
- Generic work with lists
OWN MODULES
- The .hs have to specify that is a module
- module <name> ( fn1, fn2, fn2, ..) where fn1 = ... fn2 = ..
- First have to load it with :l
- The .hs have to specify that is a module
:l <name.hs> to load in the session
Información
- Descripción
- Mapa Mental sobre Modules, creado por Nestor Ignacio Bernal Morales el 19/03/2018.
- Creado por
- Nestor Ignacio Bernal Morales
- Visitas
- 0
- Valoración
Más sobre Haskell Modules and Libraries