Return ConnectionError

This commit is contained in:
Nikita Volkov 2015-12-23 16:23:39 +05:00
parent b777ae2e40
commit 032f3be9f5
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
name:
hasql
version:
0.17
0.18
category:
Hasql, Database, PostgreSQL
synopsis:

View File

@ -3,7 +3,7 @@
module Hasql.Connection
(
Connection,
AcquisitionError(..),
ConnectionError(..),
acquire,
release,
)

View File

@ -17,12 +17,12 @@ data Connection =
-- |
-- Possible details of the connection acquistion error.
type AcquisitionError =
type ConnectionError =
Maybe ByteString
-- |
-- Acquire a connection using the provided settings encoded according to the PostgreSQL format.
acquire :: Settings.Settings -> IO (Either AcquisitionError Connection)
acquire :: Settings.Settings -> IO (Either ConnectionError Connection)
acquire settings =
{-# SCC "acquire" #-}
runEitherT $ do