Module

Data.Record.Fold

Package
purescript-record-fold
Repository
mbuszka/purescript-record-fold

#Fold Source

class Fold stepper a fold | stepper a -> fold where

Members

  • fold :: stepper -> a -> fold

Instances

#RFold Source

class RFold stepper (list :: RowList) (row :: Row Type) fold | list -> fold where

Members

Instances

#Step Source

class Step stepper (lbl :: Symbol) val step | val -> step where

Members

Instances

#AppCat Source

newtype AppCat app cat a b

Instances

#ApplyS Source

data ApplyS a

Instances

#applyTo Source

applyTo :: forall res list row a. RowToList row list => RFold (ApplyS a) list row (Builder (Record ()) (Record res)) => a -> Record row -> Record res

#collect Source

collect :: forall res r f. Applicative f => Fold CollectS r (AppCat f Builder (Record ()) (Record res)) => r -> f (Record res)

#CollectS Source

data CollectS

Instances

#EqS Source

data EqS

Instances

#LenS Source

data LenS

Instances

#length Source

length :: forall r. Fold LenS r (Int -> Int) => r -> Int

#MapS Source

data MapS (f :: Type -> Type)

Instances

#rEq Source

rEq :: forall r. Fold EqS r (AppCat (Function r) Function Boolean Boolean) => r -> r -> Boolean

#rMap Source

rMap :: forall res r f. Fold (MapS f) r (Builder (Record ()) (Record res)) => (forall a. a -> f a) -> r -> Record res

#rShow Source

rShow :: forall r. Fold ShowS r (Res -> Res) => r -> Res

#ShowS Source

data ShowS

Instances