GoConqr has a new look! Let us know what you think.

Mind map

Modules

HERRERA BOHORQUEZ JAVIER FELIPE Spanish

Map content

Modules

  1. collection of

    • types
    • related functions
    • typeclasses
  2. 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
  3. Haskell Standard library split in 4 modules

    • Data.List
      • Provides useful functions for editing lists
        • Intercalate
        • Transpose
        • Concat
        • intersperse
    • Data.Char
      • Exports functions that deal with
        • Islower
        • IsDigit
        • IsMark
        • IsNumber
    • Data.Map
      • lists that are used to store key-value pairs where ordering doesn't matter
        • FromList
        • Empty
    • 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
  4. 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

Information

Description
Mind Map on Modules, created by HERRERA BOHORQUEZ JAVIER FELIPE on 08/10/2020.
Views
0
Rating

More on Haskell Modules and Libraries

Feedback

What is it about?

What do you think of the new look?

How do you like it?