Created
September 24, 2013 16:38
-
-
Save christiaanb/6687503 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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