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.Empty

  • 4 values
  • PackageAgda-2.7.0.1
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceEmpty.hs
valueensureEmptyType
  1. :: Range

    Range of the absurd pattern.

  2. -> Type

    Type that should be empty (empty data type or iterated product of such).

  3. -> TCM ()
#

Ensure that a type is empty. This check may be postponed as emptiness constraint.

valuecheckEmptyTel :: Range -> Telescope -> TCM (Either ErrorNonEmpty Int)
#

Check whether one of the types in the given telescope is constructor-less and if yes, return its index in the telescope (0 = leftmost).