clean up macros.
This commit is contained in:
parent
c13fdde2f8
commit
826d42f824
@ -15,14 +15,6 @@ module Language.Haskell.GhcMod.Monad (
|
|||||||
, module Control.Monad.State.Class
|
, module Control.Monad.State.Class
|
||||||
) where
|
) where
|
||||||
|
|
||||||
#ifndef MIN_VERSION_ghc
|
|
||||||
#define MIN_VERSION_ghc(x,y,z) 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MIN_VERSION_base
|
|
||||||
#define MIN_VERSION_base(x,y,z) 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
import Language.Haskell.GhcMod.Types
|
import Language.Haskell.GhcMod.Types
|
||||||
import Language.Haskell.GhcMod.Cradle
|
import Language.Haskell.GhcMod.Cradle
|
||||||
import Language.Haskell.GhcMod.GHCApi
|
import Language.Haskell.GhcMod.GHCApi
|
||||||
@ -33,13 +25,11 @@ import GhcMonad
|
|||||||
import Exception
|
import Exception
|
||||||
import MonadUtils
|
import MonadUtils
|
||||||
import DynFlags
|
import DynFlags
|
||||||
-- ghc <= 7.2
|
#if __GLASGOW_HASKELL__ <= 702
|
||||||
#if !MIN_VERSION_ghc(7,4,0)
|
|
||||||
import HscTypes
|
import HscTypes
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
-- base <= 4.6
|
#if __GLASGOW_HASKELL__ < 708
|
||||||
#if !MIN_VERSION_base(4,7,0)
|
|
||||||
import Data.Monoid (Monoid)
|
import Data.Monoid (Monoid)
|
||||||
import Control.Monad.Trans.Class (lift)
|
import Control.Monad.Trans.Class (lift)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user