Elm Exactly

Figureeffects-compound

Figure 23, Compound Semantic Objects of the Effects, in Section 8.2 Compound Objects.

ev\ev∈\inEffVal\EffVal=TaskVal∪CmdVal∪SubVal∪ProcId∪ProgVal= \TaskVal\cup\CmdVal\cup\SubVal\cup\ProcId\cup\ProgVal
tk\tk∈\inTaskVal\TaskVal=({succeed,fail}×Val)= (\{\effsucceed,\efffail\}\times\Val)
=∪({andThen,onError}×Val×TaskVal)\phantom{{}={}}\cup(\{\effandThen,\effonError\}\times\Val\times\TaskVal)
=∪⋃k≥1({prim}×Prim×Valk)\phantom{{}={}}\cup\textstyle\bigcup_{k\geq 1}(\{\effprim\}\times\effPrim\times\Val^k)
cm\cm∈\inCmdVal\CmdVal=⋃n≥0({batch}×CmdValn)= \textstyle\bigcup_{n\geq 0}(\{\effbatch\}\times\CmdVal^n)
=∪({map}×Val×CmdVal)\phantom{{}={}}\cup(\{\effmap\}\times\Val\times\CmdVal)
=∪({leaf}×Manager×(Val∪BVal))\phantom{{}={}}\cup(\{\effleaf\}\times\effMgr\times(\Val\cup\BVal))
sb\sbv∈\inSubVal\SubVal=⋃n≥0({batch}×SubValn)= \textstyle\bigcup_{n\geq 0}(\{\effbatch\}\times\SubVal^n)
=∪({map}×Val×SubVal)\phantom{{}={}}\cup(\{\effmap\}\times\Val\times\SubVal)
=∪({leaf}×Manager×Val)\phantom{{}={}}\cup(\{\effleaf\}\times\effMgr\times\Val)
m\effm∈\inManager\effMgr={task}∪({out}×Var)= \{\effmtask\}\cup(\{\effmout\}\times\cls{Var})
=∪({in}×Var×Type)∪Managerplat\phantom{{}={}}\cup(\{\effmin\}\times\cls{Var}\times\Type)\cup\effMgrPlat
a\effa∈\inAction\effAction=⋃k≥1Prim×Valk×TaskVal= \textstyle\bigcup_{k\geq 1}\effPrim\times\Val^k\times\TaskVal
pv\pv∈\inProgVal\ProgVal={prog}×Record= \{\effprog\}\times\Record
jj∈\inBVal\BVal={null,true,false}∪JNum∪Str∪Byt= \{\effnull,\efftrue,\efffalse\}\cup\effJNum\cup\effStr\cup\effByt
=∪⋃n≥0BValn∪(Str→finBVal)\phantom{{}={}}\cup\textstyle\bigcup_{n\geq 0}\BVal^n\cup(\effStr\finmap\BVal)
∈\inJVal\JVal={null,true,false}∪JNum∪Str= \{\effnull,\efftrue,\efffalse\}\cup\effJNum\cup\effStr
=∪⋃n≥0JValn∪(Str→finJVal)\phantom{{}={}}\cup\textstyle\bigcup_{n\geq 0}\JVal^n\cup(\effStr\finmap\JVal)
Figure 23: Compound Semantic Objects of the Effects
Read it in its chapter·Permanent address: /standard/figures/effects-compound

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:effects-compound] 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.