HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.TypeChecking.Positivity.Occurrence

Occurrences.

  • 3 types
  • 2 values
  • PackageAgda-2.7.0.1
  • Exports5
  • LanguageHaskell2010
  • LicenceMIT
  • SourceOccurrence.hs
datadata Occurrence
#

Subterm occurrences for positivity checking. The constructors are listed in increasing information they provide: Mixed <= JustPos <= StrictPos <= GuardPos <= Unused Mixed <= JustNeg <= Unused.

Constructors

  • Mixed

    Arbitrary occurrence (positive and negative).

  • JustNeg

    Negative occurrence.

  • JustPos

    Positive occurrence, but not strictly positive.

  • StrictPos

    Strictly positive occurrence.

  • GuardPos

    Guarded strictly positive occurrence (i.e., under ∞). For checking recursive records.

  • Unused
Instances16Bounded, Enum, Eq, Ord, Show, NFData, …
datadata OccursWhere
#

Description of an occurrence.

Constructors

  • OccursWhere Range (Seq Where) (Seq Where)

    The elements of the sequences, read from left to right, explain how to get to the occurrence. The second sequence includes the main information, and if the first sequence is non-empty, then it includes information about the context of the second sequence.

Instances11Eq, Ord, Show, Generic, NFData, Pretty, …
datadata Where
#

One part of the description of an occurrence.

Constructors

Instances7Eq, Ord, Show, Generic, NFData, Pretty, …