Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Class to provide type-driven access to elements of a HList
Synopsis
- class ContainsType a c where
- setHListElem :: a -> HList c -> HList c
- getHListElem :: HList c -> a
Documentation
class ContainsType a c where Source #
for get/put of a value in a HList, with type-directed lookup.
setHListElem :: a -> HList c -> HList c Source #
getHListElem :: HList c -> a Source #
Instances
ContainsType a xs => ContainsType a (x ': xs) Source # | |
Defined in Data.HList.ContainsType setHListElem :: a -> HList (x ': xs) -> HList (x ': xs) Source # getHListElem :: HList (x ': xs) -> a Source # | |
ContainsType a (a ': xs) Source # | |
Defined in Data.HList.ContainsType setHListElem :: a -> HList (a ': xs) -> HList (a ': xs) Source # getHListElem :: HList (a ': xs) -> a Source # |