Agda
Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Positivity

Description

Check that a datatype is strictly positive.

Synopsis

Documentation

checkStrictlyPositive :: MutualInfo -> Set QName -> TCM () Source #

Check that the datatypes in the mutual block containing the given declarations are strictly positive.

Find polarity of datatypes parameters and indices.

Also add information about positivity and recursivity of records to the signature.

Orphan instances

PrettyTCM Node Source # 
Instance details

Methods

prettyTCM :: MonadPretty m => Node -> m Doc Source #

PrettyTCM (Seq OccursWhere) Source # 
Instance details

Pretty a => PrettyTCMWithNode (Edge a) Source # 
Instance details