@@ -1,26 +1,35 @@
1−Version 0.5.0.1 (2015-09-21)
2− * Fixed a bug when printing a `ZonedTime` with a negative offset
1+### Version 0.5.1.0 (2015-10-22)
2+ * Optimized the implementation of the streaming operators to avoid
3+ creating intermediate lists of rows, thanks to Timo von Holtz.
4+
5+ * Added default instances for `ToRow` and `FromRow` that depend on
6+ Generics, thanks to Alexey Khudyakov.
7+
8+ * Fixed support for bytestring-0.9 and GHC 7.4.
9+
10+### Version 0.5.0.1 (2015-09-21)
11+ * Fixed a bug when printing a `ZonedTime` with a negative offset
312 that is not a whole number of hours.
413
5−Version 0.5.0.0 (2015-09-19)
6− * Removed the deprecated BuiltinTypes module.
14+### Version 0.5.0.0 (2015-09-19)
15+ * Removed the deprecated `BuiltinTypes` module.
716
8− * Modified the SQL quasiquoter so that it returns a Query, not
9− an overloaded string, and so that the OverloadedStrings language
17+ * Modified the SQL quasiquoter so that it returns a `Query`, not
18+ an overloaded string, and so that the `OverloadedStrings` language
1019 extension is no longer necessary, thanks to Mike Ledger.
1120
12− * Moved away from blaze-builder in favor of bytestring-builder. This
21+ * Moved away from `blaze-builder` in favor of `bytestring-builder`. This
1322 shouldn't affect very many people, but does reduce the transitive
1423 dependencies.
1524
1625 * Rewrote the timestamp printers to use the new `Prim`
17− infrastructure in bytestring-builder. The new printers should
26+ infrastructure in `bytestring-builder`. The new printers should
1827 be a fair bit faster.
1928
20− * Added support for exclusion violations to the ConstraintViolation
29+ * Added support for exclusion violations to the `ConstraintViolation`
2130 type in the Errors module, thanks to João Cristóvão.
2231
23− * Moved away from the uuid package in favor of the uuid-types package,
32+ * Moved away from the `uuid` package in favor of the `uuid-types` package,
2433 thanks to Bardur Arantsson. This shouldn't affect anybody, but does
2534 reduce the transitive dependencies.
2635
@@ -31,15 +40,15 @@ Version 0.5.0.0 (2015-09-19)
3140 connecting to a database by the backend if the backend cannot
3241 accomodate this requirement.
3342
34− * Added Eq and Typeable instance for Connection.
43+ * Added `Eq` and `Typeable` instances for `Connection`.
3544
36− * Added the foldWith, forEachWith, and returningWith families of functions
37− courtesy of Travis Staton.
45+ * Added the `foldWith`, `forEachWith`, and `returningWith` families
46+ of functions courtesy of Travis Staton.
3847
3948 * Support for Ranged types, with thanks to Leonid Onokhov for his
4049 contributions.
4150
42− * The FromField instance for JSON now allows for top-level values that
51+ * The `FromField` instance for JSON now allows for top-level values that
4352 are not objects or arrays, thanks to Sam Rijs.
4453
4554 * The timestamp parsers have been replaced with those now in Aeson.
@@ -49,7 +58,7 @@ Version 0.5.0.0 (2015-09-19)
4958 bring the effort full circle, the result has been brought back to
5059 postgresql-simple, with some adaptations.
5160
52− * Fixed a bug in the typeinfo system where postgresql's _record type
61+ * Fixed a bug in the typeinfo system where postgresql's `_record` type
5362 was being reported as a basic type and not an array type. Thanks to
5463 Nickolay Kolev for helping to expose this issue.
5564
@@ -57,13 +66,13 @@ Version 0.5.0.0 (2015-09-19)
5766 case of parsing subfields of arrays and composites, it would fetch the
5867 `TypeInfo` of the array or composite type and not the subtype.
5968
60−Version 0.4.10.0 (2015-02-26)
69+### Version 0.4.10.0 (2015-02-26)
6170 * Added a blurb about SSL/TLS in the documentation for connectPostgreSQL
6271
6372 * Moved some functions into the Internal module, courtesy of Aleksey
6473 Uimanov.
6574
66−Version 0.4.9.0 (2014-12-27)
75+### Version 0.4.9.0 (2014-12-27)
6776 * Made the fromField method for PGArray available as pgArrayFieldParser,
6877 outside of the typeclass courtesy of Tom Ellis.
6978
@@ -71,13 +80,13 @@ Version 0.4.9.0 (2014-12-27)
7180
7281 * Fixed deprecation warnings, courtesy of Simon Hengel.
7382
74−Version 0.4.8.0 (2014-11-24)
83+### Version 0.4.8.0 (2014-11-24)
7584 * Added support for postgresql's citext type extension via the
7685 case-insensitive package.
7786
7887 * Added the function parseHStoreList to the HStore module.
7988
80−Version 0.4.7.0 (2014-10-27)
89+### Version 0.4.7.0 (2014-10-27)
8190 * Added support for very old timestamps to UTCTime. Depending on time
8291 zone, very old timestamps can be returned with a offset from UTC that
8392 contains seconds.
@@ -97,24 +106,24 @@ Version 0.4.7.0 (2014-10-27)
97106
98107 Thanks to Michael Snoyman for his assistance with this issue.
99108
100−Version 0.4.6.0 (2014-10-07)
109+### Version 0.4.6.0 (2014-10-07)
101110 * Added an instance ToField NominalDiffTime.
102111
103−Version 0.4.5.0 (2014-09-26)
112+### Version 0.4.5.0 (2014-09-26)
104113 * Added support for retrieving NaN and ±Infinity floating point values
105114 from postgres to the FromField instances for Float, Double, and Rational.
106115 The instance for Scientific is unchanged due to the fact it has no
107116 way of representing these special values. Thanks goes to Tom Nielsen
108117 for reporting the issue.
109118
110−Version 0.4.4.1 (2014-09-07)
119+### Version 0.4.4.1 (2014-09-07)
111120 * Fixed a rather serious bug that prevented the COPY module from working
112121 at all on unix clients since version 0.4.3.0. Thanks goes to
113122 Dmitry Dzhus for reporting the issue.
114123
115124 * Added a regression test for the COPY module to the test suite.
116125
117−Version 0.4.4.0 (2014-08-26)
126+### Version 0.4.4.0 (2014-08-26)
118127 * Added the jsonb type debuting in PostgreSQL 9.4 to the TypeInfo.Static
119128 and Builtin tables, and extended the out-of-box json instances to
120129 be compatible with the new type. Thanks to Tobias Florek for the
@@ -123,7 +132,7 @@ Version 0.4.4.0 (2014-08-26)
123132 * Ported some expanded documentation from mysql-simple, and fixed
124133 a documentation typo.
125134
126−Version 0.4.3.0 (2014-07-10)
135+### Version 0.4.3.0 (2014-07-10)
127136 * connect and exec now use libpq asynchronously on non-Windows platforms.
128137 This means we are using threadWaitRead and threadWaitWrite to
129138 have GHC's IO manager schedule non-blocking C calls to libpq,
@@ -137,7 +146,7 @@ Version 0.4.3.0 (2014-07-10)
137146 that originate from client-side code. However, this goal
138147 isn't perfectly achieved as of yet.
139148
140−Version 0.4.2.3 (2014-06-04)
149+### Version 0.4.2.3 (2014-06-04)
141150 * This is strictly a documentation release, with no code changes.
142151
143152 * Fixed several documentation typos, thanks to Chris Allen and remdezx.
@@ -148,13 +157,13 @@ Version 0.4.2.3 (2014-06-04)
148157
149158 * De-emphasized connect and ConnectInfo in favor of connectPostgreSQL.
150159
151−Version 0.4.2.2 (2014-05-15)
160+### Version 0.4.2.2 (2014-05-15)
152161 * Fixed compatibility with scientific-0.3.*, thanks to Adam Bergmark
153162
154163 * Improved documentation of the FromField module, as well as the fold,
155164 foldWithOptions, executeMany, and returning operators.
156165
157−Version 0.4.2.1 (2014-03-27)
166+### Version 0.4.2.1 (2014-03-27)
158167 * Fixed bug in Values syntax generation
159168
160169 * Improved documentation, including examples of multi-row update,
@@ -162,7 +171,7 @@ Version 0.4.2.1 (2014-03-27)
162171 floating point numbers from the database, and the IsString instance
163172 for QualifiedIdentifier.
164173
165−Version 0.4.2.0 (2014-03-22)
174+### Version 0.4.2.0 (2014-03-22)
166175 * Added ToField and FromField instances for the scientific package
167176
168177 * Changed the Identifier and QualifiedIdentifier to use Text in
@@ -172,7 +181,7 @@ Version 0.4.2.0 (2014-03-22)
172181 * Removed non-exhaustive cases in the ToField instance for Values,
173182 and tweaked error messages.
174183
175−Version 0.4.1.0 (2014-03-22)
184+### Version 0.4.1.0 (2014-03-22)
176185 * Fixed the parsing of arrays containing null values, courtesy of
177186 Francesco Mazzoli
178187
@@ -184,17 +193,17 @@ Version 0.4.1.0 (2014-03-22)
184193 more general than executeMany and returning. See the
185194 Database.PostgreSQL.Simple.Types.Values data type.
186195
187−Version 0.4.0.2 (2014-01-12)
196+### Version 0.4.0.2 (2014-01-12)
188197 * Tweaked C preprocessor directive to be more portable
189198
190199 * Tweaked testsuite for compatibility with aeson-0.7
191200
192−Version 0.4.0.1 (2013-12-21)
201+### Version 0.4.0.1 (2013-12-21)
193202 * Relaxed dependency on aeson to >= 0.6
194203
195204 * Update the documentation of `fromField`
196205
197−Version 0.4.0.0 (2013-12-21)
206+### Version 0.4.0.0 (2013-12-21)
198207 * Changed the calling code of `fromField` so that it always sends
199208 a copy of the raw data. This should be a small but significant
200209 performance bump for most people most of the time; however it
@@ -210,15 +219,15 @@ Version 0.4.0.0 (2013-12-21)
210219
211220 * Added FromField instances for IORef, MVar, and IOVector.
212221
213−Version 0.3.10.0 (2013-12-17)
222+### Version 0.3.10.0 (2013-12-17)
214223 * Added the queryWith function, courtesy of Leonid Onokhov
215224
216225 * Added the Default type, for representing postgresql's default values
217226
218−Version 0.3.9.1 (2013-10-28)
227+### Version 0.3.9.1 (2013-10-28)
219228 * Removed dependency on hashable
220229
221−Version 0.3.9.0 (2013-10-27)
230+### Version 0.3.9.0 (2013-10-27)
222231 * Added FromField and ToField instances for the `uuid` package,
223232 courtesy of Bas van Dijk.
224233
@@ -228,16 +237,16 @@ Version 0.3.9.0 (2013-10-27)
228237 * Added the fromBinary, fromHStoreMap, and fromHStoreList newtype
229238 unwrapper functions, courtesy of Bas van Dijk.
230239
231−Version 0.3.8.0 (2013-10-11)
240+### Version 0.3.8.0 (2013-10-11)
232241 * Fixed the example code in `FromField`, thanks to Adam Bergmark.
233242
234243 * Added `Notification.getBackendPID`.
235244
236−Version 0.3.7.1 (2013-09-12)
245+### Version 0.3.7.1 (2013-09-12)
237246 * Relaxed the dependency on bytestring-0.10 back to bytestring-0.9,
238247 courtesy of Michael Snoyman
239248
240−Version 0.3.7.0 (2013-09-11)
249+### Version 0.3.7.0 (2013-09-11)
241250 * Added `aeson` as a dependency.
242251
243252 * Added ToField and FromField instances for aeson's JSON.Value type,
@@ -258,7 +267,7 @@ Version 0.3.7.0 (2013-09-11)
258267
259268 * Various documentation fixes.
260269
261−Version 0.3.6.0 (2013-08-19)
270+### Version 0.3.6.0 (2013-08-19)
262271 * Added the json type to BuiltinTypes and TypeInfo.Static, courtesy of
263272 Manuel Gómez.
264273
@@ -269,14 +278,14 @@ Version 0.3.6.0 (2013-08-19)
269278 months from now. Fixed the example code in FromField to reflect
270279 this change.
271280
272−Version 0.3.5.0 (2013-08-09)
281+### Version 0.3.5.0 (2013-08-09)
273282 * Added an FromRow instance for Vector, semantically identical to the
274283 existing FromRow instance for [], courtesy of Doug Beardsley
275284
276285 * Reworked the documentation for the Copy module, and tweaked the
277286 documentation for the LargeObjects module.
278287
279−Version 0.3.4.0 (2013-07-23)
288+### Version 0.3.4.0 (2013-07-23)
280289 * Added direct support for COPY IN and COPY OUT, without having
281290 to use raw postgresql-libpq calls and postgresql-simple's Internal
282291 module.
@@ -285,43 +294,43 @@ Version 0.3.4.0 (2013-07-23)
285294 exception instead of an ErrorCall exception when it fails to fetch
286295 the connection's file descriptor from libpq.
287296
288−Version 0.3.3.2 (2013-06-18)
297+### Version 0.3.3.2 (2013-06-18)
289298 * Optimized the definition of `mconcat` in the Monoid instance for
290299 the Query type, courtesy of Joey Adams.
291300
292−Version 0.3.3.1 (2013-06-06)
301+### Version 0.3.3.1 (2013-06-06)
293302 * `getNotification` now works on Windows, albeit using a one-second
294303 polling loop, courtesy of Joey Adams.
295304
296−Version 0.3.3.0 (2013-05-29)
305+### Version 0.3.3.0 (2013-05-29)
297306 * Fixed two issues with the fold operator: fold would raise the wrong
298307 exception, and gave the database cursor a static name preventing
299308 folds from being nested. Thanks to Joey Adams for his
300309 work on these issues.
301310
302−Version 0.3.2.0 (2013-05-20)
311+### Version 0.3.2.0 (2013-05-20)
303312 * Added a savepoint abstraction to the Transaction module, courtesy
304313 of Joey Adams
305314
306−Version 0.3.1.2 (2013-04-29)
315+### Version 0.3.1.2 (2013-04-29)
307316 * Fixed hstore parser to not unnecessarily reverse the key-value pairs
308317
309−Version 0.3.1.1 (2013-04-29)
318+### Version 0.3.1.1 (2013-04-29)
310319 * Fixed hstore parser to recognize empty hstores, courtesy of Simon
311320 Meier
312321
313−Version 0.3.1.0 (2013-04-26)
322+### Version 0.3.1.0 (2013-04-26)
314323 * Added support for Range and Composite types to the TypeInfo system.
315324
316325 * Added support for hstore types in the Simple.HStore module.
317326
318327 * Improved documentation of the FromField module.
319328
320−Version 0.3.0.1 (2013-03-26)
329+### Version 0.3.0.1 (2013-03-26)
321330 * A large chunk of the documentation inside the FromField module had
322331 silently failed to render in Haddock.
323332
324−Version 0.3.0.0 (2013-03-25)
333+### Version 0.3.0.0 (2013-03-25)
325334 * Added support for PostgreSQL's Array Types. Thanks to Jason Dusek
326335 for his work on this feature.
327336
@@ -363,33 +372,33 @@ Version 0.3.0.0 (2013-03-25)
363372 now stripped out.
364373
365374
366−Version 0.2.4.1 (2012-08-29)
375+### Version 0.2.4.1 (2012-08-29)
367376 * Fixed the documentation of `In`. Thanks to rekado and dstcruz for
368377 pointing this out.
369378
370−Version 0.2.4.0 (2012-08-23)
379+### Version 0.2.4.0 (2012-08-23)
371380 * Added the `withTransactionSerializable` and `withTransactionModeRetry`
372381 operators, thanks to Joey Adams.
373382
374−Version 0.2.3.0 (2012-08-09)
383+### Version 0.2.3.0 (2012-08-09)
375384 * Added the `returning` operator, thanks to Jason Dusek
376385
377−Version 0.2.2.0 (2012-07-26)
386+### Version 0.2.2.0 (2012-07-26)
378387 * Added a ToRow instance for the (:.) type, courtesy of Leonid Onokhov
379388
380389 * Added the type oid for PostgreSQL's `uuid` type to BuiltinTypes
381390
382−Version 0.2.1.0 (2012-07-23)
391+### Version 0.2.1.0 (2012-07-23)
383392 * Added the FromRow.fieldWith operator, thanks to Leonid Onokhov
384393
385394 * Added a type synonym for FieldParser
386395
387−Version 0.2.0.1 (2012-06-21)
396+### Version 0.2.0.1 (2012-06-21)
388397 * Fixed a compatibility problem with PostgreSQL 8.1, which does not allow
389398 clients to set their own value for `standard_conforming_strings`. This
390399 connection variable is still set to `on` for PostgreSQL 8.2 and later.
391400
392−Version 0.2: (2012-06-19)
401+### Version 0.2: (2012-06-19)
393402 * Removed the conversion from `timestamp` to `UTCTime`. Some code will be
394403 broken even though it will still compile.
395404
@@ -398,16 +407,16 @@ Version 0.2: (2012-06-19)
398407 * Exported ToRow/FromRow from Database.PostgreSQL.Simple
399408
400409
401−Version 0.1.4.3: (2012-06-10)
410+### Version 0.1.4.3: (2012-06-10)
402411 * Fix language extensions for compatibility with GHC 7.0
403412
404−Version 0.1.4.2: (2012-06-10)
413+### Version 0.1.4.2: (2012-06-10)
405414 * Fix a wayward dependency on Text.
406415
407−Version 0.1.4.1: (2012-06-10)
416+### Version 0.1.4.1: (2012-06-10)
408417 * Added support for timezones with minutes in their UTC offset.
409418
410−Version 0.1.4: (2012-06-10)
419+### Version 0.1.4: (2012-06-10)
411420 * Removed pcre-light dependency, courtesy of Joey Adams.
412421
413422 * Reworked support for the Time types.
@@ -432,13 +441,13 @@ Version 0.1.4: (2012-06-10)
432441 * Renaming some of the type names in `BuiltinTypes`.
433442
434443
435−Version 0.1.3: (2012-05-30)
444+### Version 0.1.3: (2012-05-30)
436445 * Made ZonedTime an instance of FromField and ToField
437446
438447 * Added getNotificationNonBlocking
439448
440449
441−Version 0.1.2: (2012-05-09)
450+### Version 0.1.2: (2012-05-09)
442451 * Switched to libpq-based escaping for bytea types; Binary now works with
443452 PostgreSQL 8 courtesy of Joey Adams.
444453
@@ -451,7 +460,7 @@ Version 0.1.2: (2012-05-09)
451460 * Exported (:.) from Database.PostgreSQL.Simple
452461
453462
454−Version 0.1.1: (2012-05-06)
463+### Version 0.1.1: (2012-05-06)
455464 * Added some preliminary documentation for the Ok, Notification, and
456465 LargeObjects modules
457466
@@ -460,7 +469,7 @@ Version 0.1.1: (2012-05-06)
460469 * Fixed a bug relating to handling the transaction level
461470
462471
463−Version 0.1: (2012-05-04)
472+### Version 0.1: (2012-05-04)
464473 * Renamed several modules, typeclasses, and functions:
465474
466475 QueryParams (renderParams) -> ToRow (toRow)