Restrictionmodules-basics-qualifier
The qualifier Basics is provided only by an import of the module Basics: an import requires to be Basics. Since no module of a program has the identifier of a module of the initial basis (the last item), the module Basics is always that of the initial basis, and the long identifiers Basics.True, Basics.False and Basics.negate that derived forms introduce (Appendix A) always denote its bindings.
Tests (1)
- elm / StandardA91BasicsAliasTestOnly an import of the module Basics may provide the qualifier `Basics`.
In Lean
This restriction is decided on the syntax tree, as the book states it, by Src.BasicsQualifier (StandardElmMech/Src/Restrictions.lean, line 256), whose decider the kernel runs; each written test program has a theorem that it meets the restrictions, or that it breaks this one. Broken by: StandardA91BasicsAliasTest.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:modules-basics-qualifier] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.