From 677d7687f26dae9ac7c054c030d32f59a1460c72 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 1 Nov 2015 12:28:10 +0100 Subject: DynFlags: -freverse-errors should be defFlag This flag works under both GHC and GHCi, as pointed out on D1367. Thanks to @thomie for pointing this out. --- compiler/main/DynFlags.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 0c1facc3ad..fb6265cdfb 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -2410,9 +2410,9 @@ dynamic_flags = [ deprecate "Use -fno-force-recomp instead")) , defGhcFlag "no-recomp" (NoArg (do setGeneralFlag Opt_ForceRecomp deprecate "Use -fforce-recomp instead")) - , defGhcFlag "freverse-errors" + , defFlag "freverse-errors" (noArg (\d -> d {reverseErrors = True} )) - , defGhcFlag "fno-reverse-errors" + , defFlag "fno-reverse-errors" (noArg (\d -> d {reverseErrors = False} )) ------ HsCpp opts --------------------------------------------------- -- cgit v1.2.1