Rule 177p-program
Programs
(177)
Comments
A program is elaborated as a whole before any part of it is evaluated: if one module fails to elaborate, the static premise fails, and nothing is evaluated, not even the modules before it. Elaboration may choose the new type names of a module freely (rule (46)), but neither , whose types are built from type names of the initial basis alone, nor depends on the choice.
TeX source
\defnrule[r:p-program]
{\jstat{\pgBstat\of B}{\program}{(\tau,\PE)}\premsep
\jdyn{\pgBdyn\of B}{\program}{v}}
{\jdg{B}{\program}{(\tau,\PE,v)}}Tests (1)
- elm / ImportedModuleTypeErrorTestA program whose imported module has a type error is rejected as a whole.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:p-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.