Elm Exactly

Rule 69d-atexp-unit

Atomic ExpressionsE⊢atexp⇒v\jdg{E}{\atexp}{v}
E⊢()⇒()\frac{\begin{array}{c}\end{array}}{\begin{array}{c}\jdg{E}{\kw{()}}{()}\end{array}}
(69)
Read it in its chapter·Permanent address: /standard/rules/d-atexp-unit
TeX source
\defnrule[r:d-atexp-unit]
  {}
  {\jdg{E}{\kw{()}}{()}}

Tests (3)

  • elm / EmbeddedUnitCaptureTest
    A local function returns a tuple containing a unit value bound in the enclosing `let`, and the tuple is destructured by a pattern.
  • elm / MinimalUnitTest
    The unit expression has the unit type and value.
  • elm / StandardCoreEvaluationExamplesTest
    Small programs for rules of the dynamic semantics of the Core that other tests reach only in passing, and examples from the Comments of A Standard Definition of Elm?, Chapter 6.

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:d-atexp-unit] 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.