From 23f6ef345f5ddfb96c99f01520c9b6517f5741b9 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Tue, 14 Feb 2023 16:47:43 +1300 Subject: Add MonadPlus instance --- Parsers.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Parsers.hs') 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 -- cgit v1.2.1