Rule 31s-tyrow
Type-expression Rows
(31)
Comments
The syntactic restrictions ensure .
TeX source
\defnrule[r:s-tyrow]
{\jdg{C}{\ty}{\tau} \premsep \opt{\jdg{C}{\tyrow}{\varrho}}}
{\jdg{C}{\lab\ \kw{:}\ \ty\ \opt{\kw{,}\ \tyrow}}{\{\lab \mapsto \tau\}\opt{{}+\varrho}}}Tests (2)
- elm / MinimalRecordTypeTestAn annotation with a record type of one field.
- elm / RecordRowsTestRecord expressions, record types and record patterns are rows of fields.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:s-tyrow] 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.