ddc-core-0.4.2.1: Disciplined Disciple Compiler core language and type checker.

Safe HaskellSafe
LanguageHaskell98

DDC.Core.Collect.Support

Synopsis

Documentation

data Support n Source

Constructors

Support 

Fields

supportTyCon :: Set (Bound n)

Type constructors used in the expression.

supportTyConXArg :: Set (Bound n)

Type constructors used in the argument of a value-type application.

supportSpVar :: Set (Bound n)

Free spec variables in an expression.

supportSpVarXArg :: Set (Bound n)

Type constructors used in the argument of a value-type application.

supportWiVar :: Set (Bound n)

Free witness variables in an expression. (from the Witness universe)

supportDaVar :: Set (Bound n)

Free value variables in an expression. (from the Data universe)

Instances

supportEnvFlags :: Ord n => Support n -> Set (Bool, Bound n) Source

Get a description of the type and value environment from a Support. Type (level-1) variables are tagged with True, while value and witness (level-0) variables are tagged with False.