Elm Exactly

Basis entryTask.fail

A value of Task. Its type is in Section C.5 Debugging, Programs and Effects.

Static basis

fail ↦ (∀x a. x→(x,a)Task,v)\begin{array}{|rcl|}\hline \href{/standard/basis/Task/fail}{\kw{fail}} {\ }& \mapsto {\ }& (\forall\mv{x}\,\mv{a}.\,\mv{x} \rightarrow (\mv{x}, \mv{a})\sbtTask, \isv)\\\hline\end{array}
Figure 43: Static Interface of Task

Dynamic basis

var or con ↦ varitysucceed, fail ↦ basic value1\begin{array}{|rclc|}\hline \var\ \text{or}\ \con {\ }& \mapsto {\ }& v {\qquad}& \arity\\\hline \href{/standard/basis/Task/succeed}{\kw{succeed}},\ \href{/standard/basis/Task/fail}{\kw{fail}} {\ }& \mapsto {\ }& \text{basic value} {\qquad}& 1\\\hline\end{array}
Figure 47: Dynamic VE\VE of the Other Modules of ME0\ME_0
Read it in its chapter·Permanent address: /standard/basis/Task/fail

Tests (0)

No test of the suite checks this entry of the basis yet.

Discussions

Discuss this basis entry·Search the discussions on GitHub

Discussions are on GitHub; one about this basis entry has [b:Task.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.