Elm Exactly

Rule 42s-pat-atpat

PatternsC⊢pat⇒(VE,τ)\jdg{C}{\pat}{(\VE, \tau)}
C⊢atpat⇒(VE,τ)C⊢atpat⇒(VE,τ)\frac{\begin{array}{c}\jdg{C}{\atpat}{(\VE, \tau)}\end{array}}{\begin{array}{c}\jdg{C}{\atpat}{(\VE, \tau)}\end{array}}
(42)
Read it in its chapter·Permanent address: /standard/rules/s-pat-atpat
TeX source
\defnrule[r:s-pat-atpat]
  {\jdg{C}{\atpat}{(\VE, \tau)}}
  {\jdg{C}{\atpat}{(\VE, \tau)}}

Tests (2)

  • elm / MinimalCaseTest
    A case expression with one rule whose pattern is a variable.
  • 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-pat-atpat] 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.