Generic derivation of FromRow.
Instantiating FromRow can in some cases be quite tedious. Luckily we can derive it generically in some cases where the type at hand has a Generic instance. The current implementation only works for a (n-ary) product types. So we would not be able to e.g. derive a FromRow instance for
data Bool = True | False
We can, however, derive a generic instance for the User type
(see the example in FromRow).
Instances4GFromRow
GFromRow U1Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.FromRowFromField a => GFromRow (K1 i a)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.FromRow(GFromRow a, GFromRow b) => GFromRow (a :*: b)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.FromRowGFromRow a => GFromRow (M1 i c a)Defined in sqlite-simple-0.4.19.0 · Database.SQLite.Simple.FromRow