HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Empty

An empty type with some useful instances.

  • 1 type
  • 2 values
  • PackageAgda-2.7.0.1
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceEmpty.hs
datadata Empty
#
Instances4Eq, Ord, Show, NFData
  • Eq EmptyDefined in Agda-2.7.0.1 · Agda.Utils.Empty
  • Ord EmptyDefined in Agda-2.7.0.1 · Agda.Utils.Empty
  • Show EmptyDefined in Agda-2.7.0.1 · Agda.Utils.Empty
  • NFData EmptyDefined in Agda-2.7.0.1 · Agda.Utils.Empty

    Values of type Empty are not forced, because Empty is used as a constructor argument in Substitution'.

toImpossible e extracts the Impossible value raised via IMPOSSIBLE to create the element e of type Empty. It proceeds by evaluating e to weak head normal form and catching the exception. We are forced to wrap things in a Maybe because of catchImpossible's type.