Commits

Anonymous committed 6f9426f

Fixed Data.Aeson.TH compilation warnings

Comments (0)

Files changed (1)

-{-# LANGUAGE NoImplicitPrelude, TemplateHaskell #-}
+{-# LANGUAGE CPP, NoImplicitPrelude, TemplateHaskell #-}
 
 {-|
 Module:      Data.Aeson.TH
 import Control.Applicative ( pure, (<$>), (<*>) )
 import Control.Monad       ( return, mapM, mzero, liftM2 )
 import Data.Bool           ( otherwise )
-import GHC.Base            ( Monad(..), String )
 import Data.Eq             ( (==) )
 import Data.Function       ( ($), (.), id )
 import Data.Functor        ( fmap )
 import Data.List           ( (++), foldl', map, zip, genericLength )
-import Prelude             ( (-), Integer, fromInteger, error )
+import Prelude             ( String, (-), Integer, error )
 import Text.Show           ( show )
+#if __GLASGOW_HASKELL__ < 700
+import Control.Monad       ( (>>=), fail )
+import Prelude             ( fromInteger )
+#endif
 -- from containers:
 import qualified Data.Map as M ( toList )
 -- from template-haskell: