From 757e17f34ae7c9c167cb98a5b404c7854e7d57ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Sat, 22 Oct 2016 20:36:02 +0200 Subject: [PATCH] Fix 'withCleanupSession' CPP conditional --- Language/Haskell/GhcMod/Gap.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Haskell/GhcMod/Gap.hs b/Language/Haskell/GhcMod/Gap.hs index 59d1228..5cfa088 100644 --- a/Language/Haskell/GhcMod/Gap.hs +++ b/Language/Haskell/GhcMod/Gap.hs @@ -95,7 +95,7 @@ import PatSyn import TcRnTypes #endif -#if __GLASGOW_HASKELL__ >= 802 +#if defined(MIN_VERSION_GLASGOW_HASKELL) && MIN_VERSION_GLASGOW_HASKELL(8,0,2,0) import GHC hiding (ClsInst, withCleanupSession) import qualified GHC (withCleanupSession) #elif __GLASGOW_HASKELL__ >= 706