Module

Record.Extra

Package
purescript-record-extra
Repository
justinwoo/purescript-record-extra

#mapRecord Source

mapRecord :: forall row xs a b row'. RowToList row xs => MapRecord xs row a b () row' => (a -> b) -> Record row -> Record row'

#MapRecord Source

class MapRecord :: RowList Type -> Row Type -> Type -> Type -> Row Type -> Row Type -> Constraintclass MapRecord (xs :: RowList Type) (row :: Row Type) a b (from :: Row Type) (to :: Row Type) | xs -> row a b from to where

Members

Instances

#ZipRecord Source

class ZipRecord :: RowList Type -> Row Type -> RowList Type -> Row Type -> Row Type -> Row Type -> Constraintclass ZipRecord (rla :: RowList Type) (ra :: Row Type) (rlb :: RowList Type) (rb :: Row Type) (from :: Row Type) (to :: Row Type) | rla -> ra from to, rlb -> rb from to where

Members

Instances

#zipRecord Source

zipRecord :: forall ta ra tb rb rc. RowToList ra ta => RowToList rb tb => ZipRecord ta ra tb rb () rc => Record ra -> Record rb -> Record rc

#Keys Source

class Keys :: RowList Type -> Constraintclass Keys (xs :: RowList Type)  where

Members

Instances

#keys Source

keys :: forall g row rl. RowToList row rl => Keys rl => g row -> List String

#pickFn Source

pickFn :: forall r1 r2. Fn2 (Array String) (Record r1) (Record r2)

#pick Source

pick :: forall a r b l. Union b r a => RowToList b l => Keys l => Record a -> Record b

#slistKeys Source

slistKeys :: forall g tuples rl. SListToRowList tuples rl => Keys rl => g tuples -> List String

#SList Source

data SList

#SCons Source

data SCons :: Symbol -> SList -> SListdata SCons t0 t1

Instances

#SNil Source

data SNil :: SListdata SNil

Instances

#type (:::) Source

Operator alias for Record.Extra.SCons (right-associative / precedence 6)

#SListToRowList Source

class SListToRowList :: SList -> RowList Type -> Constraintclass SListToRowList (xs :: SList) (rl :: RowList Type) | xs -> rl, rl -> xs

Instances

#OrdRecord Source

class OrdRecord :: RowList Type -> Row Type -> Constraintclass OrdRecord (rl :: RowList Type) row | rl -> row where

Members

Instances

#compareRecord Source

compareRecord :: forall row rl. RowToList row rl => OrdRecord rl row => Record row -> Record row -> Ordering

#SequenceRecord Source

class SequenceRecord :: RowList Type -> Row Type -> Row Type -> Row Type -> (Type -> Type) -> Constraintclass (Functor m) <= SequenceRecord (rl :: RowList Type) row from to m | rl -> row from to m where

Members

Instances

#sequenceRecord Source

sequenceRecord :: forall row row' rl m. RowToList row rl => SequenceRecord rl row () row' m => Record row -> m (Record row')
Modules
Record.Extra