Elm Exactly

Rule 11s-atexp-paren

Atomic ExpressionsC⊢atexp⇒τ\jdg{C}{\atexp}{\tau}
C⊢exp⇒τC⊢( exp )⇒τ\frac{\begin{array}{c}\jdg{C}{\expm}{\tau}\end{array}}{\begin{array}{c}\jdg{C}{\kw{(}\,\expm\,\kw{)}}{\tau}\end{array}}
(11)
Read it in its chapter·Permanent address: /standard/rules/s-atexp-paren
TeX source
\defnrule[r:s-atexp-paren]
  {\jdg{C}{\expm}{\tau}}
  {\jdg{C}{\kw{(}\,\expm\,\kw{)}}{\tau}}

Tests (2)

  • elm / MinimalParenthesesTest
    A parenthesised expression has the value of what it encloses.
  • elm / ParenthesesTest
    Parentheses around an expression, a pattern or a type change nothing but the grouping.

Discussions

Discuss this rule·Search the discussions on GitHub

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