Elm Exactly

Rule 111d-pat-cons-fail

PatternsE,v⊢pat⇒VE/FAIL\jdgv{E}{v}{\pat}{\VE/\FAIL}
v=[]E,v⊢pat1 :: pat2⇒FAIL\frac{\begin{array}{c}v=\kw{[]}\end{array}}{\begin{array}{c}\jdgv{E}{v}{\pat_1\ \kw{::}\ \pat_2}{\FAIL}\end{array}}
(111)
Read it in its chapter·Permanent address: /standard/rules/d-pat-cons-fail

Referred to from

TeX source
\defnrule[r:d-pat-cons-fail]
  {v=\kw{[]}}
  {\jdgv{E}{v}{\pat_1\ \kw{::}\ \pat_2}{\FAIL}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:d-pat-cons-fail] 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.