summaryrefslogtreecommitdiff
path: root/Parsers.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Parsers.hs')
-rw-r--r--Parsers.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parsers.hs b/Parsers.hs
index 84b4856..a7f70a2 100644
--- a/Parsers.hs
+++ b/Parsers.hs
@@ -39,6 +39,9 @@ instance Alternative (Parser t) where
instance MonadPlus (Parser t)
+instance MonadFail (Parser t) where
+ fail _ = mzero
+
-----------------------------------------------------------------------------
flunk :: Parser t a