From 9ca4071f471b384d805fe1dd4940119c302ade01 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Tue, 28 Dec 2021 16:50:01 +0200 Subject: [PATCH] hls-graph: Internal.Types: mk 8.6.5 code as such --- hls-graph/src/Development/IDE/Graph/Internal/Types.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hls-graph/src/Development/IDE/Graph/Internal/Types.hs b/hls-graph/src/Development/IDE/Graph/Internal/Types.hs index 13c4359f2b..5026202433 100644 --- a/hls-graph/src/Development/IDE/Graph/Internal/Types.hs +++ b/hls-graph/src/Development/IDE/Graph/Internal/Types.hs @@ -8,13 +8,16 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE CPP #-} module Development.IDE.Graph.Internal.Types where import Control.Applicative import Control.Monad.Catch +#if __GLASGOW_HASKELL__ < 870 -- Needed in GHC 8.6.5 import Control.Concurrent.STM.Stats (TVar, atomically) +#endif import Control.Monad.Fail import Control.Monad.IO.Class import Control.Monad.Trans.Reader