summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/SysTools/Terminal.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/SysTools/Terminal.hs b/compiler/GHC/SysTools/Terminal.hs
index 37f53772ef..14a39ffad6 100644
--- a/compiler/GHC/SysTools/Terminal.hs
+++ b/compiler/GHC/SysTools/Terminal.hs
@@ -3,14 +3,15 @@
module GHC.SysTools.Terminal (stderrSupportsAnsiColors) where
import GHC.Prelude
-import GHC.IO (catchException)
#if defined(MIN_VERSION_terminfo)
+import GHC.IO (catchException)
import Data.Maybe (fromMaybe)
import System.Console.Terminfo (SetupTermError, Terminal, getCapability,
setupTermFromEnv, termColors)
import System.Posix (queryTerminal, stdError)
#elif defined(mingw32_HOST_OS)
+import GHC.IO (catchException)
import GHC.Utils.Exception (try)
-- import Data.Bits ((.|.), (.&.))
import Foreign (Ptr, peek, with)