|Version 1 (modified by 11 years ago) (diff),|
Liberal Type Synonyms
See the GHC Documentation on this extension.
The basic idea is that type validity checking is done after expanding type synonyms. This means that type synonyms can be written unsaturated, as long as the result of expanding synonyms leaves everything saturated. This is sometimes quite useful.
There are also interactions with RankNTypes - a type synonym may expand to a quantified type.
Adopt GHC's approach to type synonym expansion.
- add Liberal Type Synonyms
- Small generalisation
- Easily specified
- Quite handy