Elm Exactly

Rule 24s-ty-record

Type ExpressionsC⊢ty⇒τ\jdg{C}{\ty}{\tau}
⟨C⊢tyrow⇒ϱ⟩C⊢{ ⟨tyrow⟩ }⇒{{}⟨+ϱ⟩}\frac{\begin{array}{c}\opt{\jdg{C}{\tyrow}{\varrho}}\end{array}}{\begin{array}{c}\jdg{C}{\kw{\kwlb}\,\opt{\tyrow}\,\kw{\kwrb}}{\rec{\emptymap\opt{{}+\varrho}}}\end{array}}
(24)
Read it in its chapter·Permanent address: /standard/rules/s-ty-record
TeX source
\defnrule[r:s-ty-record]
  {\opt{\jdg{C}{\tyrow}{\varrho}}}
  {\jdg{C}{\kw{\kwlb}\,\opt{\tyrow}\,\kw{\kwrb}}{\rec{\emptymap\opt{{}+\varrho}}}}

Tests (4)

Discussions

Discuss this rule·Search the discussions on GitHub

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