git.iko.soy/typeable/postgresql-simple
on master help sign in
Fix typo in docs
72b06bdLeon P Smith
src/Database/PostgreSQL/Simple/FromField.hs+6−3
@@ -27,9 +27,12 @@ Note that the 'Float' and 'Double' instances use attoparsec's 'double'
27conversion routine, which sacrifices some accuracy for speed. If you
27conversion routine, which sacrifices some accuracy for speed. If you
28need accuracy, consider first converting data to a 'Scientific' or 'Rational'
28need accuracy, consider first converting data to a 'Scientific' or 'Rational'
29type, and then converting to a floating-point type. If you are defining
29type, and then converting to a floating-point type. If you are defining
30+your own 'Database.PostgreSQL.Simple.FromRow.FromRow' instances, this can be
30−your own 'ToRow' instances, this can be acheived simply by
31+acheived simply by
31−@'fromRational' '<$>' 'field'@, although this idiom additionally compatible
32+@'fromRational' '<$>' 'Database.PostgreSQL.Simple.FromRow.field'@, although
32−with PostgreSQL's @numeric@ type.
33+this idiom is additionally compatible with PostgreSQL's @numeric@ type.
34+If this is unacceptable, you may find
35+'Database.PostgreSQL.Simple.FromRow.fieldWith' useful.
33
36
34Because 'FromField' is a typeclass, one may provide conversions to
37Because 'FromField' is a typeclass, one may provide conversions to
35additional Haskell types without modifying postgresql-simple. This is
38additional Haskell types without modifying postgresql-simple. This is
src/Database/PostgreSQL/Simple/FromRow.hs-boot+3−4
@@ -8,11 +8,10 @@ class FromRow a
8instance (FromField a) => FromRow (Only a)
8instance (FromField a) => FromRow (Only a)
9instance (FromField a, FromField b)
9instance (FromField a, FromField b)
10 => FromRow (a,b)
10 => FromRow (a,b)
11−instance (FromField a, FromField b, FromField c, FromField d)
11+instance (FromField a, FromField b, FromField c, FromField d)
12 => FromRow (a,b,c,d)
12 => FromRow (a,b,c,d)
13−instance (FromField a, FromField b, FromField c, FromField d, FromField e)
13+instance (FromField a, FromField b, FromField c, FromField d, FromField e)
14 => FromRow (a,b,c,d,e)
14 => FromRow (a,b,c,d,e)
15instance (FromField a, FromField b, FromField c, FromField d, FromField e
15instance (FromField a, FromField b, FromField c, FromField d, FromField e
16− ,FromField f)
16+ ,FromField f)
17 => FromRow (a,b,c,d,e,f)
17 => FromRow (a,b,c,d,e,f)
18−