Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype TypeList d = TypeList [Any]
- empty :: TypeList '[]
- index :: forall a d. KnownNat (Index a d) => TypeList d -> Lookup a d
- cons :: forall a d b. b -> TypeList d -> TypeList ('(a, b) ': d)
- (<|) :: forall a d b. b -> TypeList d -> TypeList ('(a, b) ': d)
- snoc :: forall a d b. Last d ~ '(a, b) => TypeList (Init d) -> b -> TypeList d
- (|>) :: forall a d b. Last d ~ '(a, b) => TypeList (Init d) -> b -> TypeList d
Documentation
cons :: forall a d b. b -> TypeList d -> TypeList ('(a, b) ': d) infixr 5 Source #
Add an element to the beginning of a list. O(1)