MonadIO for Session

This commit is contained in:
Nikita Volkov 2015-12-23 20:35:21 +05:00
parent 15be208dd5
commit d4757f3bbc
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
name:
hasql
version:
0.19
0.19.1
category:
Hasql, Database, PostgreSQL
synopsis:

View File

@ -14,7 +14,7 @@ import qualified Hasql.Private.Connection as Connection
-- A batch of actions to be executed in the context of a database connection.
newtype Session a =
Session (ReaderT Connection.Connection (EitherT Error IO) a)
deriving (Functor, Applicative, Monad, MonadError Error)
deriving (Functor, Applicative, Monad, MonadError Error, MonadIO)
-- |
-- Executes a bunch of commands on the provided connection.