Elm Exactly

Restrictionmodules-basics-qualifier

Stated in Section 3.7 Syntactic Restrictions.

The qualifier Basics is provided only by an import of the module Basics: an import import modid as Basics\kw{import}\ \modid\ \kw{as}\ \kw{Basics} requires modid\modid 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.

Read it in its chapter·Permanent address: /standard/restrictions/modules-basics-qualifier

Tests (1)

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.