@@ -1,29 +1,29 @@
1−## Modules
1+Modules
2+=======
23
3−Modules are introduced using the `module` keyword. All code must be placed in a module.
4+All code in PureScript is contained in a module. Modules are introduced using the `module` keyword::
45
5−Introduce a module as follows, with a list of declarations:
6+ module A where
7+
8+ id x = x
69
7−```haskell
8−module A where
10+When referencing values or data types in another module, names may be qualified by using a dot::
911
10−id x = x
11−```
12+ module B where
13+
14+ foo = A.id
1215
13−Names may be qualified by using a dot:
16+Importing Modules
17+-----------------
1418
15−```
16−foo = A.id
17−```
19+A module can be imported using the `import` keyword. This will create aliases for all of the values and types in the imported module::
1820
19−All the names in a module can be aliased using the `import` declaration:
21+ module B where
22+
23+ import A
2024
21−```haskell
22−import A
23−```
25+Alternatively, a list of names to import can be provided in parentheses::
2426
25−You can also limit which names are going to be aliased:
26−
27−```haskell
28−import A (id)
29−```
27+ module B where
28+
29+ import A (id)