HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.IndexedList

Synopsis
  • PackageAgda-2.8.0.2
  • Exports11
  • LanguageHaskell2010
  • LicenceMIT
  • SourceIndexedList.hs
datadata Some (a :: k -> Type) where

Existential wrapper for indexed types.

Constructors

valuewithSome :: Some b -> (forall (i :: k). b i -> a) -> a

Unpacking a wrapped value.

datadata All (a :: x -> Type) (b :: [x]) where

Lists indexed by a type-level list. A value of type All p [x₁..xₙ] is a sequence of values of types p x₁, .., p xₙ.

Constructors

valueforgetAll :: (forall (x1 :: x). b x1 -> a) -> All b xs -> [a]

Turning an indexed list back into a plain list.