hpqtypes-1.3.0: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.PQTypes.Fold

Synopsis

Documentation

foldLeftM :: forall m row acc. (MonadBase IO m, MonadDB m, FromRow row) => (acc -> row -> m acc) -> acc -> m acc Source

Fold the result set of rows from left to right.

foldRightM :: forall m row acc. (MonadBase IO m, MonadDB m, FromRow row) => (row -> acc -> m acc) -> acc -> m acc Source

Fold the result set of rows from right to left.