summaryrefslogtreecommitdiff
path: root/compiler/cmm
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cmm')
-rw-r--r--compiler/cmm/CmmMonad.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/cmm/CmmMonad.hs b/compiler/cmm/CmmMonad.hs
index f3b4441a9b..821c0a6504 100644
--- a/compiler/cmm/CmmMonad.hs
+++ b/compiler/cmm/CmmMonad.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
-----------------------------------------------------------------------------
-- A Parser monad with access to the 'DynFlags'.
--
@@ -31,7 +33,9 @@ instance Applicative PD where
instance Monad PD where
(>>=) = thenPD
+#if !MIN_VERSION_base(4,13,0)
fail = MonadFail.fail
+#endif
instance MonadFail.MonadFail PD where
fail = failPD