Elm Exactly

Rule 121dm-expitem-alias

Exposing ItemsI⊢item⇒I′\jdg{I}{\expitem}{I'}
tycon∈RAofIcon=tycon(VEofI)(con)=vI⊢tycon⇒({tycon},{},{con↦v})\frac{\begin{array}{c}\tycon\in\dmRA\of I\premsep\con=\tycon\premsep(\VE\of I)(\con)=v\end{array}}{\begin{array}{c}\jdg{I}{\tycon}{(\{\tycon\},\emptymap,\{\con\mapsto v\})}\end{array}}
(121)
Read it in its chapter·Permanent address: /standard/rules/dm-expitem-alias

Comments

Rules (121) and (122) cover the one item tycon\tycon, distinguished by whether tycon\tycon is a record alias whose constructor II exposes. The property of Section 7.2 ensures that (VEofI)(con)(\VE\of I)(\con) is then defined. A record alias exposed by name exposes its constructor, so import Geometry exposing (Point) makes Point 1 2 available.

Referred to from

TeX source
\defnrule[r:dm-expitem-alias]
  {\tycon\in\dmRA\of I\premsep\con=\tycon\premsep(\VE\of I)(\con)=v}
  {\jdg{I}{\tycon}{(\{\tycon\},\emptymap,\{\con\mapsto v\})}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:dm-expitem-alias] 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.