Restrictionmodules-program
The following restrictions concern a program, and Chapter 9 imposes them. The of every port declaration of every module of a program is distinct from the of every other port declaration of the program and from the name of every manager of the platform (Chapter 8). No module of a program has the identifier of a module of the initial basis. In the main module, main does not occur free in the expression of its own declaration, so main is not recursive, even through a delayed occurrence.
Tests (1)
- elm / StandardA84DuplicatePortNameTestTwo ports of one program may not have the same name.
In Lean
This restriction is decided on the syntax tree, as the book states it, by Src.ModulesProgram (StandardElmMech/Src/Restrictions.lean, line 343), 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: StandardA84DuplicatePortNameTest.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:modules-program] 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.