aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-11-30 10:21:08 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-01-18 14:10:26 +0100
commite23f9cc73b7216063c1b014e99a848871897e142 (patch)
treec020c826ec94c3f0671081d347e27d1019fbeb0a /tests
parent3325e37439aed70ad5b0bd23d5a1e098d4a6ca7f (diff)
Use defaultLogAction for GHC 7.4
Diffstat (limited to 'tests')
-rw-r--r--tests/GhcSession.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index c05ba3c..c2b752f 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -100,7 +100,11 @@ compileModule ep opts = do
E.handle (\(ec :: ExitCode) -> print ec >> return False) $ do
+#if __GLASGOW_HASKELL__ <= 704
+ defaultErrorHandler defaultLogAction $ do
+#else
defaultErrorHandler defaultFatalMessager defaultFlushOut $ do
+#endif
runGhc (Just libdir) $ do