Elm Exactly

Figurestatic-basis-platform

Figure 42, Static Interfaces of Debug and the Platform Modules, in Section C.5 Debugging, Programs and Effects.

Debuglog ↦ (∀a. String→a→a,v)todo ↦ (∀a. String→a,v)toString ↦ (∀a. a→String,v)PlatformProgram ↦ (Program, {})Task ↦ (Task, {})ProcessId ↦ (ProcessId, {})worker ↦ (∀flags model msg.  {init↦flags→(model,msg Cmd)Tuple2,  {update↦msg→model→(model,msg Cmd)Tuple2,  {subscriptions↦model→msg Sub}  →(flags,model,msg)Program, v)Platform.CmdCmd ↦ (Cmd, {})none ↦ (∀msg. msg Cmd,v)batch ↦ (∀msg. (msg Cmd)List→msg Cmd,v)map ↦ (∀a msg. (a→msg)→a Cmd→msg Cmd,v)Platform.SubSub ↦ (Sub, {})none ↦ (∀msg. msg Sub,v)batch ↦ (∀msg. (msg Sub)List→msg Sub,v)map ↦ (∀a msg. (a→msg)→a Sub→msg Sub,v) \begin{array}{|rcl|} \hline \kw{Debug}&&\\ \hline \htmlId{b-Debug-log}{\href{/standard/basis/Debug/log}{\kw{log}}} {\ }& \mapsto {\ }& (\forall\mv{a}.\,\tString \rightarrow \mv{a} \rightarrow \mv{a}, \isv)\\ \htmlId{b-Debug-todo}{\href{/standard/basis/Debug/todo}{\kw{todo}}} {\ }& \mapsto {\ }& (\forall\mv{a}.\,\tString \rightarrow \mv{a}, \isv)\\ \htmlId{b-Debug-toString}{\href{/standard/basis/Debug/toString}{\kw{toString}}} {\ }& \mapsto {\ }& (\forall\mv{a}.\,\mv{a} \rightarrow \tString, \isv)\\ \hline \kw{Platform}&&\\ \hline \htmlId{b-Platform-Program}{\href{/standard/basis/Platform/Program}{\kw{Program}}} {\ }& \mapsto {\ }& (\sbtProgram,\ \emptymap)\\ \htmlId{b-Platform-Task}{\href{/standard/basis/Platform/Task}{\kw{Task}}} {\ }& \mapsto {\ }& (\sbtTask,\ \emptymap)\\ \htmlId{b-Platform-ProcessId}{\href{/standard/basis/Platform/ProcessId}{\kw{ProcessId}}} {\ }& \mapsto {\ }& (\sbtProcessId,\ \emptymap)\\ \hline \htmlId{b-Platform-worker}{\href{/standard/basis/Platform/worker}{\kw{worker}}} {\ }& \mapsto {\ }& (\forall\mv{flags}\,\mv{model}\,\mv{msg}.\\ {\ }& {\ }& \quad\{\kw{init} \mapsto \mv{flags} \rightarrow (\mv{model}, \mv{msg}\,\sbtCmd)\tTuple{2},\\ {\ }& {\ }& \quad\phantom{\{}\kw{update} \mapsto \mv{msg} \rightarrow \mv{model} \rightarrow (\mv{model}, \mv{msg}\,\sbtCmd)\tTuple{2},\\ {\ }& {\ }& \quad\phantom{\{}\kw{subscriptions} \mapsto \mv{model} \rightarrow \mv{msg}\,\sbtSub\}\\ {\ }& {\ }& \quad{} \rightarrow (\mv{flags}, \mv{model}, \mv{msg})\sbtProgram,\ \isv)\\ \hline \kw{Platform.Cmd}&&\\ \hline \htmlId{b-Platform-Cmd-Cmd}{\href{/standard/basis/Platform/Cmd/Cmd}{\kw{Cmd}}} {\ }& \mapsto {\ }& (\sbtCmd,\ \emptymap)\\ \hline \htmlId{b-Platform-Cmd-none}{\href{/standard/basis/Platform/Cmd/none}{\kw{none}}} {\ }& \mapsto {\ }& (\forall\mv{msg}.\,\mv{msg}\,\sbtCmd, \isv)\\ \htmlId{b-Platform-Cmd-batch}{\href{/standard/basis/Platform/Cmd/batch}{\kw{batch}}} {\ }& \mapsto {\ }& (\forall\mv{msg}.\,(\mv{msg}\,\sbtCmd)\tList \rightarrow \mv{msg}\,\sbtCmd, \isv)\\ \htmlId{b-Platform-Cmd-map}{\href{/standard/basis/Platform/Cmd/map}{\kw{map}}} {\ }& \mapsto {\ }& (\forall\mv{a}\,\mv{msg}.\,(\mv{a} \rightarrow \mv{msg}) \rightarrow \mv{a}\,\sbtCmd \rightarrow \mv{msg}\,\sbtCmd, \isv)\\ \hline \kw{Platform.Sub}&&\\ \hline \htmlId{b-Platform-Sub-Sub}{\href{/standard/basis/Platform/Sub/Sub}{\kw{Sub}}} {\ }& \mapsto {\ }& (\sbtSub,\ \emptymap)\\ \hline \htmlId{b-Platform-Sub-none}{\href{/standard/basis/Platform/Sub/none}{\kw{none}}} {\ }& \mapsto {\ }& (\forall\mv{msg}.\,\mv{msg}\,\sbtSub, \isv)\\ \htmlId{b-Platform-Sub-batch}{\href{/standard/basis/Platform/Sub/batch}{\kw{batch}}} {\ }& \mapsto {\ }& (\forall\mv{msg}.\,(\mv{msg}\,\sbtSub)\tList \rightarrow \mv{msg}\,\sbtSub, \isv)\\ \htmlId{b-Platform-Sub-map}{\href{/standard/basis/Platform/Sub/map}{\kw{map}}} {\ }& \mapsto {\ }& (\forall\mv{a}\,\mv{msg}.\,(\mv{a} \rightarrow \mv{msg}) \rightarrow \mv{a}\,\sbtSub \rightarrow \mv{msg}\,\sbtSub, \isv)\\ \hline \end{array}
Figure 42: Static Interfaces of Debug and the Platform Modules
Read it in its chapter·Permanent address: /standard/figures/static-basis-platform

Referred to from

Tests (0)

No test of the suite checks this figure yet.

Discussions

Discuss this figure·Search the discussions on GitHub

Discussions are on GitHub; one about this figure has [fig:static-basis-platform] 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.