@@ -4,7 +4,7 @@
4------------------------------------------------------------------------------
4------------------------------------------------------------------------------
6-- Module: Database.PostgreSQL.Simple.Internal
6-- Module: Database.PostgreSQL.Simple.Internal
7−-- Copyright: (c) 2011-2012 Leon P Smith
7+-- Copyright: (c) 2011-2015 Leon P Smith
8-- License: BSD3
8-- License: BSD3
9-- Maintainer: Leon P Smith <leon@melding-monads.com>
9-- Maintainer: Leon P Smith <leon@melding-monads.com>
10-- Stability: experimental
10-- Stability: experimental
@@ -476,7 +476,9 @@ instance Alternative Conversion where
476 Errors _ -> (oka <|>) <$> runConversion mb conn
476 Errors _ -> (oka <|>) <$> runConversion mb conn
478instance Monad Conversion where
478instance Monad Conversion where
479− return a = Conversion $ \_conn -> return (return a)
479+#if !(MIN_VERSION_base(4,8,0))
480 m >>= f = Conversion $ \conn -> do
482 m >>= f = Conversion $ \conn -> do
481 oka <- runConversion m conn
483 oka <- runConversion m conn
482 case oka of
484 case oka of