diff --git a/src/Control/Matching.hs b/src/Control/Matching.hs index a25c2c23d..3a53e368c 100644 --- a/src/Control/Matching.hs +++ b/src/Control/Matching.hs @@ -55,6 +55,9 @@ instance Alternative (Matcher t) where instance Monad (Matcher t) where (>>=) = Then +instance MonadFail (Matcher t) where + fail _ = Empty + -- | This matcher always succeeds. succeeds :: Matcher t () succeeds = guard True