Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

English - Basics/Modules #26

Closed
TrueBoxGuy opened this issue Jul 5, 2021 · 0 comments · Fixed by #28
Closed

English - Basics/Modules #26

TrueBoxGuy opened this issue Jul 5, 2021 · 0 comments · Fixed by #28
Assignees

Comments

@TrueBoxGuy
Copy link
Contributor

Write a lesson succeeding the expressions and functions (#22) lessons that does the following:

  • Defines modules as a specific level of organisation (i.e. a library / executable contains a group of modules which each contain a group of related top level declarations)
  • Specifies the structure of a module and their order: language extensions; module name and exports; imports; top level declarations
  • Explains the usage of imports:
    • Explains that imports are used to import top level declarations from other modules
    • Describes basic import syntax (raw imports and qualified as imports)
    • Covers solving name clashes
    • Shows idiomatic usage of import syntax (e.g. using qualified imports to import modules with similar APIs)

This should provide a high level overview of module structure: other individual lessons will cover the forms of various declarations (such as: type signatures and variable declarations; datatypes; typeclasses) and how to import and export them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants