Elm Exactly

Rule 25s-ty-openrecord

Type ExpressionsC⊢ty⇒τ\jdg{C}{\ty}{\tau}
tyvar=ϵϵ∈UofCC⊢tyrow⇒ϱC⊢{ tyvar | tyrow }⇒{ϱ∣ϵ}\frac{\begin{array}{c}\tyvar = \epsilon \premsep \epsilon \in U \of C \premsep \jdg{C}{\tyrow}{\varrho}\end{array}}{\begin{array}{c}\jdg{C}{\kw{\kwlb}\ \tyvar\ \kw{|}\ \tyrow\ \kw{\kwrb}}{\orec{\varrho}{\epsilon}}\end{array}}
(25)
Read it in its chapter·Permanent address: /standard/rules/s-ty-openrecord

Comments

Only a type variable of class any\kany names a row variable, so { number | x : Int } does not elaborate.

TeX source
\defnrule[r:s-ty-openrecord]
  {\tyvar = \epsilon \premsep \epsilon \in U \of C \premsep \jdg{C}{\tyrow}{\varrho}}
  {\jdg{C}{\kw{\kwlb}\ \tyvar\ \kw{|}\ \tyrow\ \kw{\kwrb}}{\orec{\varrho}{\epsilon}}}

Tests (10)

Discussions

Discuss this rule·Search the discussions on GitHub

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