Module

Record.ExtraSrghma.FoldrValues

Package
purescript-record-extra-srghma
Repository
srghma/purescript-record-extra-srghma

#foldrValues Source

foldrValues :: forall accum row fieldType rowList. RowToList row rowList => FoldrValues rowList row fieldType => (fieldType -> accum -> accum) -> accum -> Record row -> accum

#foldMapValuesR Source

foldMapValuesR :: forall accum row fieldType rowList. RowToList row rowList => FoldrValues rowList row fieldType => Monoid accum => (fieldType -> accum) -> Record row -> accum

#FoldrValues Source

class FoldrValues :: RowList Type -> Row Type -> Type -> Constraintclass (Homogeneous row fieldType, HomogeneousRowList rowList fieldType) <= FoldrValues (rowList :: RowList Type) (row :: Row Type) fieldType | rowList -> row fieldType where

Members

Instances

#foldrValues1 Source

foldrValues1 :: forall row fieldType rowList. RowToList row rowList => FoldrValues1 rowList row fieldType => (fieldType -> fieldType -> fieldType) -> Record row -> fieldType

Fold over the values of a record, applying the function to each field, but no initial accumulator.

#foldMapValuesR1 Source

foldMapValuesR1 :: forall m row rowList fieldType row' rowList'. RowToList row rowList => RowToList row' rowList' => FoldrValues1 rowList' row' m => MapRecord rowList row fieldType m () row' => Semigroup m => (fieldType -> m) -> Record row -> m

#FoldrValues1 Source

class FoldrValues1 :: RowList Type -> Row Type -> Type -> Constraintclass (Homogeneous row fieldType, HomogeneousRowList rowList fieldType) <= FoldrValues1 (rowList :: RowList Type) (row :: Row Type) fieldType | rowList -> row fieldType where

Members

Instances