Skip to content

Instantly share code, notes, and snippets.

@christiaanb
Created September 24, 2013 16:38
Show Gist options
  • Save christiaanb/6687503 to your computer and use it in GitHub Desktop.
Save christiaanb/6687503 to your computer and use it in GitHub Desktop.
diff --git src/Haddock.hs src/Haddock.hs
index a7ac5ba..cecd7f5 100644
--- src/Haddock.hs
+++ src/Haddock.hs
@@ -113,6 +113,11 @@ handleGhcExceptions =
case e of
PhaseFailed _ code -> exitWith code
_ -> do
+ flags <- saveStaticFlagGlobals
+ unless (fst flags) $ do
+ _ <- parseStaticFlags []
+ return ()
+
print (e :: GhcException)
exitFailure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment