@@ -1,4 +1,4 @@
1−Version 0.1:
1+Version 0.1: (2012-05-04)
2 * Renamed several modules, typeclasses, and functions:
2 * Renamed several modules, typeclasses, and functions:
4 QueryParams (renderParams) -> ToRow (toRow)
4 QueryParams (renderParams) -> ToRow (toRow)
@@ -6,19 +6,19 @@ Version 0.1:
6 Param (render) -> ToField (toField)
6 Param (render) -> ToField (toField)
7 Result (convert) -> FromField (fromField)
7 Result (convert) -> FromField (fromField)
9− * Added the Database.PostgreSQL.Simple.Ok module
9+ * Added the `Database.PostgreSQL.Simple.Ok` module, a variation of
10−
10+ `Either SomeException` that has an instance for `Alternative` and also
11+ uses a list of exceptions to track the ways it has failed.
11 * Changed the return type of `fromField` and `fromRow` from
13 * Changed the return type of `fromField` and `fromRow` from
12− `Either SomeException` to `Ok`. Either doesn't have an instance for
14+ `Either SomeException` to `Ok`.
13− Alternative, and an orphaned instance inside of postgresql-simple is a
15+
14− very bad idea. Also, Ok returns a list of Exceptions so that you can
15− see all the ways it has failed.
17− * Thanks to Ozgun Ataman, the "FromRow" typeclass has been massively
16+ * Thanks to suggestions from Ozgun Ataman, the `FromRow` typeclass has been
18− improved. The result is simpler definitions and better compositionality.
17+ massively improved. The result is simpler definitions and better
19− Also, user-defined instances need not be to be concerned about forcing
18+ compositionality. Also, user-defined instances need not be to be
20− the converted results, as
19+ concerned about forcing the converted results to WHNF. Here is an
21−
20+ example comparing the old to the new:
22 instance (Result a, Result b) => QueryResults (a,b) where
22 instance (Result a, Result b) => QueryResults (a,b) where
23 convertResults [fa,fb] [va,vb] = do
23 convertResults [fa,fb] [va,vb] = do
24 !a <- convert fa va
24 !a <- convert fa va
@@ -29,14 +29,14 @@ Version 0.1:
29 instance (FromField a, FromField b) => FromRow (a,b) where
29 instance (FromField a, FromField b) => FromRow (a,b) where
30 fromRow = (,) <$> field <*> field
30 fromRow = (,) <$> field <*> field
32− * Added :., a pair that allows one to compose "FromRow" instances:
32+ * Added `(:.)`, a pair that allows one to compose `FromRow` instances:
34 instance (FromRow a, FromRow b) => FromRow (a :. b) where
34 instance (FromRow a, FromRow b) => FromRow (a :. b) where
35 fromRow = (:.) <$> fromRow <*> fromRow
35 fromRow = (:.) <$> fromRow <*> fromRow
37− * Moved the contents Field module into the "FromField" module.
37+ * Moved the contents `Field` module into the `FromField` module.
39 * Removed the `RawResult` type.
39 * Removed the `RawResult` type.
41− * Added `DefaultIsolationLevel` as a distinct `IsolationLevel` option and
41+ * Added `DefaultIsolationLevel` as a distinct `IsolationLevel` option
42− `DefaultReadWriteMode as a distinct `ReadWriteMode` option.
42+ and `DefaultReadWriteMode` as a distinct `ReadWriteMode`.