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 (xs :: RowList) (row :: # Type) a b (from :: # Type) (to :: # Type) | xs -> row a b from to where

Members

Instances

#ZipRecord Source

class ZipRecord (rla :: RowList) (ra :: # Type) (rlb :: RowList) (rb :: # Type) (from :: # Type) (to :: # 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 (xs :: RowList)  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

kind SList

#SCons Source

data SCons :: Symbol -> SList -> SList

Instances

#SNil Source

data SNil :: SList

Instances

#SLProxy Source

data SLProxy (xs :: SList)

Constructors

#type (:::) Source

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

#SListToRowList Source

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

Instances

#OrdRecord Source

class OrdRecord rl 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 (Functor m) <= SequenceRecord rl 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