diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2017-11-30 10:21:08 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2018-01-18 14:10:26 +0100 |
commit | e23f9cc73b7216063c1b014e99a848871897e142 (patch) | |
tree | c020c826ec94c3f0671081d347e27d1019fbeb0a /tests | |
parent | 3325e37439aed70ad5b0bd23d5a1e098d4a6ca7f (diff) |
Use defaultLogAction for GHC 7.4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GhcSession.hs | 4 |
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 |