Restrictionmodules-alias-tyvars
In a type-alias binding , the contains exactly the type variables occurring in , including extension variables of record types: an alias has no unused parameter.
Tests (2)
- elm / AliasUnboundVariableTestA type alias uses only its parameters.
- elm / AliasUnusedParameterTestA type alias has no unused parameter.
In Lean
This restriction is decided on the syntax tree, as the book states it, by Src.AliasTyVars (StandardElmMech/Src/Restrictions.lean, line 291), whose decider the kernel runs; each written test program has a theorem that it meets the restrictions, or that it breaks this one. Broken by: AliasUnboundVariableTest, AliasUnusedParameterTest.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:modules-alias-tyvars] 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.