Elm Exactly

Restrictioncore-record-update-form

Stated in Section 2.10 Syntactic Restrictions, under Records.

In a record update { var | exprow }\kw{\kwlb}\ \var\ \kw{|}\ \exprow\ \kw{\kwrb} the item before | is a variable that is not qualified, and at least one expression row follows |; the grammar gives this shape, and an extensible record type expression likewise has at least one row.

Read it in its chapter·Permanent address: /standard/restrictions/core-record-update-form

Tests (1)

In Lean

This restriction is decided on the syntax tree, as the book states it, by Src.RecordUpdateForm (StandardElmMech/Src/Restrictions.lean, line 225), whose decider the kernel runs; each written test program has a theorem that it meets the restrictions, or that it breaks this one. No written test program breaks it.

Discussions

Discuss this restriction·Search the discussions on GitHub

Discussions are on GitHub; one about this restriction has [res:core-record-update-form] 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.