HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.