From 152bd62f8e6e3b13e5f2c391c50223fe1f52fd22 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Thu, 22 Nov 2018 00:49:08 +0100 Subject: [PATCH] Add `-f(no-)error-spans` flag to hash-irrelevant flags This flag is used by the default build-command in `haskell-mode` so it's very noticeable if haskell-mode causes to recompile the world NB: no changelog entry as this can be considered a follow-up to #5589 (cherry picked from commit 50be57e6db24eafa0ce412f3224fa4a4a037f89a) --- Cabal/Distribution/Simple/Program/GHC.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cabal/Distribution/Simple/Program/GHC.hs b/Cabal/Distribution/Simple/Program/GHC.hs index fc450229b27..4da255056ae 100644 --- a/Cabal/Distribution/Simple/Program/GHC.hs +++ b/Cabal/Distribution/Simple/Program/GHC.hs @@ -170,7 +170,8 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs [ [ "reverse-errors", "warn-unused-binds", "break-on-error" , "break-on-exception", "print-bind-result" , "print-bind-contents", "print-evld-with-show" - , "implicit-import-qualified" ] + , "implicit-import-qualified", "error-spans" + ] , from [8,2] [ "diagnostics-show-caret", "local-ghci-history" , "show-warning-groups", "hide-source-paths"