Elm Exactly

Figurestatic-core-compound

Figure 14, Compound Semantic Objects, in Section 4.2 Compound Objects.

τ\tau∈\inType\Type=TyVar∪RecType∪FunType∪ConsType= \TyVar \cup \RecType \cup \FunType \cup \ConsType
ϱ\varrho∈\inRow\Row=Lab→finType= \cls{Lab} \finmap \Type
{ϱ} or {ϱ∣ϵ}\rec{\varrho}\ \text{or}\ \orec{\varrho}{\epsilon}∈\inRecType\RecType=Row×(RowVar∪{∅})= \Row \times (\RowVar \cup \{\emptyrow\})
τ→τ′\tau \rightarrow \tau'∈\inFunType\FunType=Type×Type= \Type \times \Type
∈\inConsType\ConsType=⋃k≥0ConsType(k)= \textstyle\bigcup_{k \ge 0} \ConsType^{(k)}
τ(k)t\tau^{(k)} t∈\inConsType(k)\ConsType^{(k)}=Typek×TyName(k)= \Type^k \times \TyName^{(k)}
θ or Λξ(k).τ\theta\ \text{or}\ \Lambda\tyrowvar^{(k)}.\tau∈\inTypeFcn\TypeFcn=⋃k≥0(TyVar∪RowVar)k×Type= \textstyle\bigcup_{k \ge 0} (\TyVar \cup \RowVar)^k \times \Type
σ or ∀ξ(k).τ\sigma\ \text{or}\ \forall\tyrowvar^{(k)}.\tau∈\inTypeScheme\TypeScheme=⋃k≥0(TyVar∪RowVar)k×Type= \textstyle\bigcup_{k \ge 0} (\TyVar \cup \RowVar)^k \times \Type
(θ,VE)(\theta, \VE)∈\inTyStr\TyStr=TypeFcn×ValEnv= \TypeFcn \times \ValEnv
TE\TE∈\inTyEnv\TyEnv=TyCon→finTyStr= \cls{TyCon} \finmap \TyStr
VE\VE∈\inValEnv\ValEnv=(Var∪Con)→finTypeScheme×IdStatus= (\cls{Var} \cup \cls{Con}) \finmap \TypeScheme \times \IdStatus
QE\QE∈\inQualEnv\QualEnv=ModId→finEnv= \cls{ModId} \finmap \Env
E or QE,TE,VEE\ \text{or}\ \QE, \TE, \VE∈\inEnv\Env=QualEnv×TyEnv×ValEnv= \QualEnv \times \TyEnv \times \ValEnv
C or T,U,EC\ \text{or}\ T, U, E∈\inContext\Context=Fin (TyName)×Fin (TyVar∪RowVar)= \Fin(\TyName) \times \Fin(\TyVar \cup \RowVar)
×Env\quad{}\times \Env
Figure 14: Compound Semantic Objects
Read it in its chapter·Permanent address: /standard/figures/static-core-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:static-core-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.