diff --git a/Database/MongoDB/Internal/Util.hs b/Database/MongoDB/Internal/Util.hs index 6a79080..de80749 100644 --- a/Database/MongoDB/Internal/Util.hs +++ b/Database/MongoDB/Internal/Util.hs @@ -1,6 +1,7 @@ -- | Miscellaneous general functions and Show, Eq, and Ord instances for PortID {-# LANGUAGE FlexibleInstances, UndecidableInstances, StandaloneDeriving #-} +{-# LANGUAGE CPP #-} -- PortID instances {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -29,8 +30,10 @@ import Data.Text (Text) import qualified Data.Text as T +#if !MIN_VERSION_network(2, 4, 1) deriving instance Show PortID deriving instance Eq PortID +#endif deriving instance Ord PortID -- | MonadIO with extra Applicative and Functor superclasses diff --git a/mongoDB.cabal b/mongoDB.cabal index e692546..68a747a 100644 --- a/mongoDB.cabal +++ b/mongoDB.cabal @@ -1,5 +1,5 @@ Name: mongoDB -Version: 1.3.1 +Version: 1.3.2 Synopsis: Driver (client) for MongoDB, a free, scalable, fast, document DBMS Description: This package lets you connect to MongoDB servers and