Skip to content

Commit cde17de

Browse files
Mindor haddock fixes
2 parents 9b1fd12 + 43dde4d commit cde17de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PgNamed.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ queryNamed conn qNamed params =
210210
and expects a list of rows in return.
211211
212212
Sometimes there are multiple ways to parse tuples returned by PostgreSQL into
213-
the same data type. However, it's not possible to implement multiple intances of
213+
the same data type. However, it's not possible to implement multiple instances of
214214
the 'PG.FromRow' typeclass (or any other typeclass).
215215
216216
Consider the following data type:
@@ -224,11 +224,11 @@ __data__ Person = Person
224224
225225
We might want to parse values of the @Person@ data type in two ways:
226226
227-
1. Default by parsing all fields.
227+
1. Default to parsing all fields.
228228
2. Parse only name and @age@ to 'Nothing'.
229229
230230
If you want to have multiple instances, you need to create @newtype@ for each
231-
case. However, in some cases it might not be convenient to deal with newtypes
231+
case. However, in some cases it might not be convenient to deal with @newtypes@
232232
around large data types. So you can implement custom 'PG.RowParser' and use it
233233
with 'queryWithNamed'.
234234
@@ -272,7 +272,7 @@ executeNamed conn qNamed params =
272272
withNamedArgs qNamed params >>= \(q, actions) ->
273273
liftIO $ PG.execute conn q (toList actions)
274274

275-
{- | Same as 'executeNamed' but discard the nubmer of rows affected by the given
275+
{- | Same as 'executeNamed' but discard the number of rows affected by the given
276276
query. This function is useful when you're not interested in this number.
277277
-}
278278
executeNamed_

0 commit comments

Comments
 (0)