Rule 24s-ty-record
Type Expressions
(24)
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)
- elm / LssGapRecordFnNoAliasA function stored in a field of an unaliased record type is called through that field.
- elm / MinimalRecordTypeTestAn annotation with a record type of one field.
- elm / RecursiveTypeInRecordTestChecks that a custom type can recurse through a record carried by one of its constructors.
- elm / TypeMismatchRecordWhereEmptyClosedRecordTestA record with a field, given where the annotation says the empty record `{}`, is rejected with a TYPE MISMATCH.
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.