HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.