Main function of this module.
ModuleAgda-2.7.0.1Haskell2010
Agda.TypeChecking.Polarity
Computing the polarity (variance) of function arguments, for the sake of subtyping.
- 5 values
- PackageAgda-2.7.0.1
- Exports5
- LanguageHaskell2010
- LicenceMIT
- SourcePolarity.hs
Polarity computation
1 declarationAuxiliary functions
4 declarationsWhat is the polarity of a function composition?
Get the next polarity from a list, Invariant if empty.
Replace Nonvariant by Covariant. (Arbitrary bias, but better than Invariant, see issue 1596).