Main function of this module.
ModuleAgda-2.8.0.2Haskell2010
Agda.TypeChecking.Polarity
Computing the polarity (variance) of function arguments, for the sake of subtyping.
Synopsis
- value computePolarity
- value composePol
- value nextPolarity
- value purgeNonvariant
- value polFromOcc
- PackageAgda-2.8.0.2
- Exports5
- LanguageHaskell2010
- LicenceMIT
- SourcePolarity.hs
Polarity computation
Auxiliary functions
What 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).