Changes between Version 1 and Version 2 of KindFact


Ignore:
Timestamp:
Mar 9, 2011 10:48:19 PM (3 years ago)
Author:
pigworker
Comment:

nearly forgot the nested tuples

Legend:

Unmodified
Added
Removed
Modified
  • KindFact

    v1 v2  
    77  * add a kind {{{Fact}}} for constraints, so that, e.g. {{{Monad :: (* -> *) -> Fact}}}; 
    88  * close {{{Fact}}} under tuples, so {{{(F1, .. Fn) :: Fact}}} iff each {{{Fi :: Fact}}}; 
     9  * allow nested tuple constraints, with componentwise unpacking and inference, so if {{{Stringy x = (Read x, Show x)}}}, then {{{(Stringy x, Eq x)}}} is a valid constraint without flattening it to {{{(Read x, Show x, Eq x)}}}; 
    910  * allow (rather, neglect to forbid) the use of {{{type}}} to introduce synonyms for Fact(-constructing) things; 
    1011  * retain the policy of defaulting to kind {{{*}}} in ambiguous inference problems -- notably {{{()}}} is the unit type and the trivial constraint -- except where overridden by kind signatures.