Ajude a dar forma ao GoConqr. O que a gente deve adicionar?

Mapa mental

Modules

Nestor Ignacio Bernal Morales Espanhol

Conteúdo do mapa

Modules

  1. 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
    • Types
    • Typeclasses
    • import <module_name>
  2. Solve a problem or necessity

    • Can be generic
      • Solve and can be used on a bunch of situations
  3. 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
  4. 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
  5. 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
  6. :l <name.hs> to load in the session

Informações

Descrição
Mapa Mental sobre Modules, criado por Nestor Ignacio Bernal Morales em 19-03-2018.
Visualizações
0
Avaliação

Mais sobre Haskell Modules and Libraries

Fale Conosco

Sobre o que é sua mensagem?

O que a gente deve adicionar?