summaryrefslogtreecommitdiff
path: root/Parsers.hs
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-02-14 23:12:44 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-02-14 23:12:44 +1300
commitd1603b48f375467c897ff040be6b92e242b5fb06 (patch)
treeb0a0374ca87b6208ec3aa10fad16f471c52689cc /Parsers.hs
parent9968ce826859333db926b0350d2e590123fe8250 (diff)
Implemented IF statements
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