Elm Exactly

Figurestatic-modules-port

Figure 17, Port Types, in Section 5.4 Port Types.

Port(τ)if τ∈{Int,Float,Bool,if τ∈{String,Bytes,(),Value}Port(τ List)if Port(τ)Port(τ Maybe)if Port(τ)Port(τ Array)if Port(τ)Port((τ1,τ2)Tuple2)if Port(τ1) and Port(τ2)Port((τ1,τ2,τ3)Tuple3)if Port(τ1), Port(τ2)and Port(τ3)Port({ϱ})if Port(ϱ(lab))for every lab∈Dom ϱ \begin{array}{ll} \Port(\tau) {\qquad}& \text{if } \tau \in \{\tInt, \tFloat, \tBool,\\ {\qquad}& \phantom{\text{if } \tau \in \{} \tString, \tBytes, \tunit, \tValue\}\\[2pt] \Port(\tau\,\tList) {\qquad}& \text{if } \Port(\tau)\\[2pt] \Port(\tau\,\tMaybe) {\qquad}& \text{if } \Port(\tau)\\[2pt] \Port(\tau\,\tArray) {\qquad}& \text{if } \Port(\tau)\\[2pt] \Port((\tau_1, \tau_2)\tTuple{2}) {\qquad}& \text{if } \Port(\tau_1) \text{ and } \Port(\tau_2)\\[2pt] \Port((\tau_1, \tau_2, \tau_3)\tTuple{3}) {\qquad}& \text{if } \Port(\tau_1),\ \Port(\tau_2)\\ {\qquad}& \text{and } \Port(\tau_3)\\[2pt] \Port(\rec{\varrho}) {\qquad}& \text{if } \Port(\varrho(\lab))\\ {\qquad}& \text{for every } \lab \in \Dom\varrho \end{array}
Figure 17: Port Types
Read it in its chapter·Permanent address: /standard/figures/static-modules-port

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-modules-port] 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.