Restrictionprogram-modules-reachable
Every module of a program other than the main module is imported, directly or through other modules, by the main module.
Tests (1)
- elm / UnreachableModuleTestA module that the main module does not reach is not part of the program, so it does not matter that it would not compile.
In Lean
This restriction is decided on the syntax tree, as the book states it, by Src.ModulesReachable (StandardElmMech/Src/Restrictions.lean, line 365), whose decider the kernel runs; each written test program has a theorem that it meets the restrictions, or that it breaks this one. No written test program breaks it.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:program-modules-reachable] 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.