Elm Exactly

Basis entryTask.mapError

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

Static basis

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

Dynamic basis

var or con ↦ varitysequence, mapError, perform, attempt ↦ Elm\begin{array}{|rclc|}\hline \var\ \text{or}\ \con {\ }& \mapsto {\ }& v {\qquad}& \arity\\\hline \href{/standard/basis/Task/sequence}{\kw{sequence}},\ \href{/standard/basis/Task/mapError}{\kw{mapError}},\ \href{/standard/basis/Task/perform}{\kw{perform}},\ \href{/standard/basis/Task/attempt}{\kw{attempt}} {\ }& \mapsto {\ }& \text{Elm} {\qquad}& \\\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/mapError

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.mapError] 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.