summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-02-14 16:47:43 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-02-14 16:47:43 +1300
commit23f6ef345f5ddfb96c99f01520c9b6517f5741b9 (patch)
tree3c2731c2e60ffe11b265e65dfe86273087a77ae2
parentd86a26087e2d535331b567b82fb497435e7fae2f (diff)
Add MonadPlus instance
-rw-r--r--Parsers.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parsers.hs b/Parsers.hs
index 96c4a07..84b4856 100644
--- a/Parsers.hs
+++ b/Parsers.hs
@@ -37,6 +37,8 @@ instance Alternative (Parser t) where
(<|>) = alt
+instance MonadPlus (Parser t)
+
-----------------------------------------------------------------------------
flunk :: Parser t a