Elm Exactly

Restrictioncore-layout-rule

Stated in Section 2.6 Layout.

Every item of a phrase is indented, except the items that the constructs below require to be aligned or at the margin.

Read it in its chapter·Permanent address: /standard/restrictions/core-layout-rule

Tests (1)

  • elm / WeirdElseBranchElseNotIndentedTest
    An `if` inside a `let` binding whose `else` sits at the binding's own column, to the left of its `if`, is rejected with a WEIRD ELSE BRANCH error.

Discussions

Discuss this restriction·Search the discussions on GitHub

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