mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-27 12:35:50 +03:00
MonadIO for Session
This commit is contained in:
parent
15be208dd5
commit
d4757f3bbc
@ -1,7 +1,7 @@
|
||||
name:
|
||||
hasql
|
||||
version:
|
||||
0.19
|
||||
0.19.1
|
||||
category:
|
||||
Hasql, Database, PostgreSQL
|
||||
synopsis:
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user