Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Record = Rec Reco :: [(Symbol, Type)] -> Type
- data Reco
- untag :: Tagged l v -> v
- getLabel :: Tagged l v -> Label l
- (.==.) :: Label l -> v -> Tagged l v
- (.**.) :: forall (l :: Symbol) v (r :: [(Symbol, Type)]). Require (OpExtend Reco l v r) '['Text ""] => Tagged l v -> Rec Reco r -> ReqR (OpExtend Reco l v r)
- (##) :: forall k k'' (l :: k) (r :: [(k, k'')]) (ctx :: [ErrorMessage]). Require (OpLookup Reco l r) ('ShowType r ': ctx) => Rec Reco r -> Label l -> ReqR (OpLookup Reco l r)
- emptyRecord :: Record ('[] :: [(Symbol, Type)])
Documentation
index type
Instances
(Show v, KnownSymbol l, Show (Record ('(l', v') ': r))) => Show (Record ('(l, v) ': ('(l', v') ': r))) Source # | |
(Show v, KnownSymbol l) => Show (Record '['(l, v)]) Source # | |
Show (Record ('[] :: [(Symbol, Type)])) Source # | |
type ShowField Reco Source # | |
Defined in Data.GenRec.RecInstances.Record | |
type ShowRec Reco Source # | Type level show utilities |
Defined in Data.GenRec.RecInstances.Record | |
type WrapField Reco (v :: Type) Source # | field type |
Defined in Data.GenRec.RecInstances.Record |
(.**.) :: forall (l :: Symbol) v (r :: [(Symbol, Type)]). Require (OpExtend Reco l v r) '['Text ""] => Tagged l v -> Rec Reco r -> ReqR (OpExtend Reco l v r) infixr 2 Source #
extension
(##) :: forall k k'' (l :: k) (r :: [(k, k'')]) (ctx :: [ErrorMessage]). Require (OpLookup Reco l r) ('ShowType r ': ctx) => Rec Reco r -> Label l -> ReqR (OpLookup Reco l r) infixl 5 Source #
Lookup