diff --git a/src/Data/Aeson/BetterErrors/Internal.hs b/src/Data/Aeson/BetterErrors/Internal.hs index 85e3f8c..1f33389 100644 --- a/src/Data/Aeson/BetterErrors/Internal.hs +++ b/src/Data/Aeson/BetterErrors/Internal.hs @@ -10,6 +10,10 @@ module Data.Aeson.BetterErrors.Internal where import Control.Applicative (Applicative, pure, (<$>), (<*>)) import Data.Foldable (foldMap) #endif +#if MIN_VERSION_mtl(2, 3, 0) +import Control.Monad (forM) +#else +#endif import Control.Arrow (left) import Control.Monad.Identity