Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Record = FieldRec
- (&:) :: KnownSymbol s => a -> Record rs -> Record ((s :-> a) ': rs)
- type family RecordColumns t where ...
- recUncons :: Record ((s :-> a) ': rs) -> (a, Record rs)
- recMaybe :: Rec (Maybe :. ElField) cs -> Maybe (Record cs)
- showFields :: (RecMapMethod Show ElField ts, RecordToList ts) => Record ts -> [String]
- rgetField :: forall t s a rs. (t ~ '(s, a), t ∈ rs) => Record rs -> a
- rputField :: forall t s a rs. (t ~ '(s, a), t ∈ rs, KnownSymbol s) => a -> Record rs -> Record rs
Documentation
(&:) :: KnownSymbol s => a -> Record rs -> Record ((s :-> a) ': rs) infixr 5 Source #
A cons
function for building Record
values.
type family RecordColumns t where ... Source #
RecordColumns (Record ts) = ts |
recUncons :: Record ((s :-> a) ': rs) -> (a, Record rs) Source #
Separate the first element of a Record
from the rest of the row.
showFields :: (RecMapMethod Show ElField ts, RecordToList ts) => Record ts -> [String] Source #
Show each field of a Record
without its column name.