Skip to content

Commit 707e61d

Browse files
committed
add the applicable new (version 9.10) GHC flags to normaliseGhcArgs
Actionable flags are: - fdiagnostics-as-json (changes the format GHC outputs its diagnostics) - fprint-error-index-lists (changes the way GHC displays compile time) - fbreak-points (enables/disables break-points in GHCi) - dipe-stats (dumps information about which info tables have IPE information)
1 parent 03d9829 commit 707e61d

File tree

1 file changed

+8
-1
lines changed
  • Cabal/src/Distribution/Simple/Program

1 file changed

+8
-1
lines changed

Cabal/src/Distribution/Simple/Program/GHC.hs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,14 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs
227227
, "keep-going" -- try harder, the build will still fail if it's erroneous
228228
, "print-axiom-incomps" -- print more debug info for closed type families
229229
]
230+
, from
231+
[9, 10]
232+
[ "diagnostics-as-json"
233+
, "print-error-index-links"
234+
, "break-points"
235+
]
230236
]
231-
, flagIn . invertibleFlagSet "-d" $ ["ppr-case-as-let", "ppr-ticks"]
237+
, flagIn . invertibleFlagSet "-d" ["ppr-case-as-let", "ppr-ticks"]
232238
, isOptIntFlag
233239
, isIntFlag
234240
, if safeToFilterWarnings
@@ -289,6 +295,7 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs
289295
, from [8, 6] ["-dhex-word-literals"]
290296
, from [8, 8] ["-fshow-docs-of-hole-fits", "-fno-show-docs-of-hole-fits"]
291297
, from [9, 0] ["-dlinear-core-lint"]
298+
, from [9, 10] ["-dipe-stats"]
292299
]
293300

294301
isOptIntFlag :: String -> Any

0 commit comments

Comments
 (0)