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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 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).