Rule 111d-pat-cons-fail
Patterns
(111)
Referred to from
- The comment on rule
d-pat-con-fail(Chapter 6)
TeX source
\defnrule[r:d-pat-cons-fail]
{v=\kw{[]}}
{\jdgv{E}{v}{\pat_1\ \kw{::}\ \pat_2}{\FAIL}}Tests (2)
- elm / EtaExpandStateFunctionSequenceTestA state-passing `sequence` written with `andThen` and `pure` over a function type alias, `St a = Int -> a`, whose definitions take more parameters than their annotations show.
- elm / MinimalConsPatternFailTestA list construction pattern fails on the empty list.
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.