HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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, …