HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulesqlite-simple-0.4.19.0Haskell2010

Database.SQLite.Simple.ToRow

The ToRow typeclass, for rendering a collection of parameters to a SQL query.

Predefined instances are provided for tuples containing up to ten elements.

  • 2 classes
classclass GToRow (f :: Type -> Type) where
#

Generic derivation of ToRow. For details about what can be derived refer to Database.Sqlite.Simple.FromRow.GFromRow.

Methods

Instances4GToRow
  • GToRow U1Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.ToRow
  • ToField a => GToRow (K1 i a)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.ToRow
  • (GToRow a, GToRow b) => GToRow (a :*: b)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.ToRow
  • GToRow a => GToRow (M1 i c a)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.ToRow
classclass ToRow a where
#

A collection type that can be turned into a list of SQLData elements.

Since version 0.4.18.1 it is possible in some cases to derive a generic implementation for ToRow. Refer to the documentation for Database.Sqlite.Simple.FromRow.FromRow to see how this can be done.

Methods

Instances13ToRow, …