Commit 316d68c1 authored by Leon Schoorl's avatar Leon Schoorl Committed by Herbert Valerio Riedel

Add trifecta-2 patch

parent 4d1b3f9e
diff --git a/src/Text/Trifecta/Parser.hs b/src/Text/Trifecta/Parser.hs
index 26a5c1c..91695da 100644
--- a/src/Text/Trifecta/Parser.hs
+++ b/src/Text/Trifecta/Parser.hs
@@ -177,8 +177,10 @@ instance Monad Parser where
{-# INLINE (>>=) #-}
(>>) = (*>)
{-# INLINE (>>) #-}
+#if !(MIN_VERSION_base(4,13,0))
fail = Fail.fail
{-# INLINE fail #-}
+#endif
instance Fail.MonadFail Parser where
fail s = Parser $ \ _ ee _ _ _ _ -> ee (failed s)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment