HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulepostgresql-simple-0.7.0.1Haskell2010

Database.PostgreSQL.Simple.Cursor

Contents
  1. Types
  2. Cursor management
  3. Folding over rows from a cursor
Synopsis

Types

Cursor management

Folding over rows from a cursor

valuefoldForward
  1. :: FromRow r
  2. => Cursor
  3. -> Int
  4. -> a -> r -> IO a
  5. -> a
  6. -> IO (Either a a)

Fold over a chunk of rows, calling the supplied fold-like function on each row as it is received. In case the cursor is exhausted, a Left value is returned, otherwise a Right value is returned.