Restrictionmodules-values-distinct
No may bind the same twice by its value declarations and port declarations together.
Tests (2)
- elm / TopLevelPortAndValueSameNameTestA port and a top-level value may not have the same name.
- elm / TopLevelValueTwiceTestA module may not define the same top-level value twice.
In Lean
This restriction is decided on the syntax tree, as the book states it, by Src.ValuesDistinct (StandardElmMech/Src/Restrictions.lean, line 271), 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: TopLevelPortAndValueSameNameTest, TopLevelValueTwiceTest.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:modules-values-distinct] 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.