git.iko.soy/typeable/postgresql-simple
on master help sign in
Fix last commit

Argh :-/

commit579a679cd81aa4121ed9a35565c301de7169b669 authorLeon P Smith <leon@melding-monads.com> dateFri 23 Aug 2013, 14:08 (13 years ago) parent2e8ed5b
1 file changed+2−1
src/Database/PostgreSQL/Simple/Internal.hs+2−1
src/Database/PostgreSQL/Simple/Internal.hs+2−1
@@ -44,6 +44,7 @@ import Database.PostgreSQL.Simple.Types (Query(..))
4444import Database.PostgreSQL.Simple.TypeInfo.Types(TypeInfo)
4545import Control.Monad.Trans.State.Strict
4646import Control.Monad.Trans.Reader
47+import Control.Monad.Trans.Class
4748import GHC.IO.Exception
4849
4950-- | A Field represents metadata about a particular field
@@ -297,7 +298,7 @@ newtype RowParser a = RP { unRP :: ReaderT Row (StateT PQ.Column Conversion) a }
297298 deriving ( Functor, Applicative, Alternative, Monad )
298299
299300liftRowParser :: IO a -> RowParser a
300−liftRowParser = lift . lift
301+liftRowParser = RP . lift . lift . liftConversion
301302
302303newtype Conversion a = Conversion { runConversion :: Connection -> IO (Ok a) }
303304