| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.HList.HList
Description
A GADT HList implementation
There exist other implementations of HList on hackage, but none seem to be reliably maintained.
Documentation
data HList (a :: [Type]) where Source #
Constructors
| HNil :: HList ('[] :: [Type]) | |
| (:+:) :: forall x (xs :: [Type]). x -> HList xs -> HList (x ': xs) infixr 5 |
Instances
| (Semigroup x, Monoid x, Semigroup (HList xs), Monoid (HList xs)) => Monoid (HList (x ': xs)) Source # | |
| Monoid (HList ('[] :: [Type])) Source # | |
| (Semigroup x, Semigroup (HList xs)) => Semigroup (HList (x ': xs)) Source # | |
| Semigroup (HList ('[] :: [Type])) Source # | |
| (Show a, Show (HList b)) => Show (HList (a ': b)) Source # | |
| Show (HList ('[] :: [Type])) Source # | |
| (Eq x, Eq (HList xs)) => Eq (HList (x ': xs)) Source # | |
| Eq (HList ('[] :: [Type])) Source # | |
hAppend :: forall (ts1 :: [Type]) (ts2 :: [Type]). HList ts1 -> HList ts2 -> HList (Append ts1 ts2) Source #