From ad99dd9c55e887a30536c593be313ea7a14c3dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Sat, 22 Oct 2016 16:40:00 +0200 Subject: [PATCH] Gap: Untangle some CPP conditionals --- Language/Haskell/GhcMod/Gap.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Language/Haskell/GhcMod/Gap.hs b/Language/Haskell/GhcMod/Gap.hs index 1c49bf7..59d1228 100644 --- a/Language/Haskell/GhcMod/Gap.hs +++ b/Language/Haskell/GhcMod/Gap.hs @@ -95,13 +95,11 @@ import PatSyn import TcRnTypes #endif -#if __GLASGOW_HASKELL__ >= 706 -#if defined(MIN_VERSION_GLASGOW_HASKELL) && MIN_VERSION_GLASGOW_HASKELL(8,0,2,0) +#if __GLASGOW_HASKELL__ >= 802 import GHC hiding (ClsInst, withCleanupSession) import qualified GHC (withCleanupSession) -#else +#elif __GLASGOW_HASKELL__ >= 706 import GHC hiding (ClsInst) -#endif #else import GHC hiding (Instance) import Control.Arrow hiding ((<+>))