HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.TypeChecking.Empty

  • 4 values
  • PackageAgda-2.8.0.2
  • 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).