diff --git a/containers/src/Utils/Containers/Internal/EqOrdUtil.hs b/containers/src/Utils/Containers/Internal/EqOrdUtil.hs index eae396581..60070b79e 100644 --- a/containers/src/Utils/Containers/Internal/EqOrdUtil.hs +++ b/containers/src/Utils/Containers/Internal/EqOrdUtil.hs @@ -1,8 +1,12 @@ +{-# LANGUAGE CPP #-} module Utils.Containers.Internal.EqOrdUtil ( EqM(..) , OrdM(..) ) where +#if !MIN_VERSION_base(4,11,0) +import Data.Semigroup (Semigroup(..)) +#endif import Utils.Containers.Internal.StrictPair newtype EqM a = EqM { runEqM :: a -> StrictPair Bool a }