git.iko.soy/typeable/postgresql-simple
on master help sign in
Merge pull request #90 from jhrcek/jhrcek/fix-typos
f74cf19Oleg Grenrus
CHANGES.md+4−4
@@ -253,7 +253,7 @@
253 support UTF8 except for Mule Internal Code, the Multilingual
253 support UTF8 except for Mule Internal Code, the Multilingual
254 Extensions for Emacs. An exception should be raised upon
254 Extensions for Emacs. An exception should be raised upon
255 connecting to a database by the backend if the backend cannot
255 connecting to a database by the backend if the backend cannot
256− accomodate this requirement.
256+ accommodate this requirement.
257
257
258 * Added `Eq` and `Typeable` instances for `Connection`.
258 * Added `Eq` and `Typeable` instances for `Connection`.
259
259
@@ -391,7 +391,7 @@
391
391
392 * Changed the Identifier and QualifiedIdentifier to use Text in
392 * Changed the Identifier and QualifiedIdentifier to use Text in
393 order to avoid encoding errors. Technically this requires a
393 order to avoid encoding errors. Technically this requires a
394− major verson bump, but let's pretend 0.4.1.0 didn't happen.
394+ major version bump, but let's pretend 0.4.1.0 didn't happen.
395
395
396 * Removed non-exhaustive cases in the ToField instance for Values,
396 * Removed non-exhaustive cases in the ToField instance for Values,
397 and tweaked error messages.
397 and tweaked error messages.
@@ -551,7 +551,7 @@
551
551
552 * Added a brand new TypeInfo system that gives FromField instances
552 * Added a brand new TypeInfo system that gives FromField instances
553 convenient and efficient access to the pg_type metatable. This
553 convenient and efficient access to the pg_type metatable. This
554− replaced the older typename cache, and was neccesary to properly
554+ replaced the older typename cache, and was necessary to properly
555 support postgres array types. Thanks to Bas van Dijk for his
555 support postgres array types. Thanks to Bas van Dijk for his
556 work on this feature.
556 work on this feature.
557
557
@@ -643,7 +643,7 @@
643 now the preferred way of dealing with `timestamp` (without time zone).
643 now the preferred way of dealing with `timestamp` (without time zone).
644
644
645 * `Database.PostgreSQL.Simple.Time` is a new module that offers types
645 * `Database.PostgreSQL.Simple.Time` is a new module that offers types
646− that accomodate PostgreSQL's infinities.
646+ that accommodate PostgreSQL's infinities.
647
647
648 * All time-related `FromField`/`ToField` instances are now based on new,
648 * All time-related `FromField`/`ToField` instances are now based on new,
649 higher-speed parsers and printers instead of those provided by the
649 higher-speed parsers and printers instead of those provided by the
src/Database/PostgreSQL/Simple.hs+1−1
@@ -900,7 +900,7 @@ forEachWith_ parser conn template = foldWith_ parser conn template () . const
900-- all values of the given PostgreSQL type is considered \"compatible\".
900-- all values of the given PostgreSQL type is considered \"compatible\".
901-- For instance, you can always extract a PostgreSQL 16-bit @SMALLINT@
901-- For instance, you can always extract a PostgreSQL 16-bit @SMALLINT@
902-- column to a Haskell 'Int'. The Haskell 'Float' type can accurately
902-- column to a Haskell 'Int'. The Haskell 'Float' type can accurately
903−-- represent a @SMALLINT@, so it is considered compatble with those types.
903+-- represent a @SMALLINT@, so it is considered compatible with those types.
904--
904--
905-- * A numeric compatibility check is based only on the type of a
905-- * A numeric compatibility check is based only on the type of a
906-- column, /not/ on its values. For instance, a PostgreSQL 64-bit
906-- column, /not/ on its values. For instance, a PostgreSQL 64-bit
src/Database/PostgreSQL/Simple/Copy.hs+1−1
@@ -55,7 +55,7 @@ import Database.PostgreSQL.Simple.Internal hiding (result, row)
55-- | Issue a @COPY FROM STDIN@ or @COPY TO STDOUT@ query. In the former
55-- | Issue a @COPY FROM STDIN@ or @COPY TO STDOUT@ query. In the former
56-- case, the connection's state will change to @CopyIn@; in the latter,
56-- case, the connection's state will change to @CopyIn@; in the latter,
57-- @CopyOut@. The connection must be in the ready state in order
57-- @CopyOut@. The connection must be in the ready state in order
58−-- to call this function. Performs parameter subsitution.
58+-- to call this function. Performs parameter substitution.
59
59
60copy :: ( ToRow params ) => Connection -> Query -> params -> IO ()
60copy :: ( ToRow params ) => Connection -> Query -> params -> IO ()
61copy conn template qs = do
61copy conn template qs = do
src/Database/PostgreSQL/Simple/Errors.hs+1−1
@@ -64,7 +64,7 @@ instance Exception ConstraintViolation
64
64
65
65
66-- | Tries to convert 'SqlError' to 'ConstrainViolation', checks sqlState and
66-- | Tries to convert 'SqlError' to 'ConstrainViolation', checks sqlState and
67−-- succeedes only if able to parse sqlErrorMsg.
67+-- succeeds only if able to parse sqlErrorMsg.
68--
68--
69-- > createUser = handleJust constraintViolation handler $ execute conn ...
69-- > createUser = handleJust constraintViolation handler $ execute conn ...
70-- > where
70-- > where