Skip to content
Snippets Groups Projects
Commit 4ada2ee5 authored by Edward Kmett's avatar Edward Kmett
Browse files

consolidate ghc version CPP handling

parent 136328c5
No related branches found
No related tags found
No related merge requests found
......@@ -75,12 +75,6 @@ module Control.Monad.Catch (
, SomeException(..)
) where
#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 706)
import Prelude hiding (foldr)
#else
import Prelude hiding (catch, foldr)
#endif
import Control.Exception (Exception(..), SomeException(..))
import qualified Control.Exception as ControlException
import qualified Control.Monad.STM as STM
......@@ -98,7 +92,12 @@ import Control.Monad.Trans.Except (ExceptT(..), runExceptT)
import Control.Monad.Trans.Cont (ContT)
import Control.Monad.Trans.Identity
import Control.Monad.Reader as Reader
#if __GLASGOW_HASKELL__ < 710
#if __GLASGOW_HASKELL__ < 706
import Prelude hiding (catch, foldr)
import Data.Monoid
#elif __GLASGOW_HASKELL__ < 710
import Prelude hiding (foldr)
import Data.Foldable
import Data.Monoid
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment