summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utility/Exception.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Exception.hs b/Utility/Exception.hs
index 5cd8fd199..67c2e85d8 100644
--- a/Utility/Exception.hs
+++ b/Utility/Exception.hs
@@ -46,11 +46,15 @@ import Utility.Data
- where there's a problem that the user is excpected to see in some
- circumstances. -}
giveup :: [Char] -> a
+#ifdef MIN_VERSION_base
#if MIN_VERSION_base(4,9,0)
giveup = errorWithoutStackTrace
#else
giveup = error
#endif
+#else
+giveup = error
+#endif
{- Catches IO errors and returns a Bool -}
catchBoolIO :: MonadCatch m => m Bool -> m Bool