summaryrefslogtreecommitdiff
path: root/Utility/Matcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Matcher.hs')
-rw-r--r--Utility/Matcher.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Utility/Matcher.hs b/Utility/Matcher.hs
index 01500a211..71e1e17f4 100644
--- a/Utility/Matcher.hs
+++ b/Utility/Matcher.hs
@@ -25,7 +25,7 @@ module Utility.Matcher (
matchesAny
) where
-import Control.Monad
+import Common
{- A Token can be an Operation of an arbitrary type, or one of a few
- predefined peices of syntax. -}
@@ -87,8 +87,8 @@ matchM :: Monad m => Matcher (v -> m Bool) -> v -> m Bool
matchM m v = go m
where
go MAny = return True
- go (MAnd m1 m2) = liftM2 (&&) (go m1) (go m2)
- go (MOr m1 m2) = liftM2 (||) (go m1) (go m2)
+ go (MAnd m1 m2) = andM (go m1) (go m2)
+ go (MOr m1 m2) = orM (go m1) (go m2)
go (MNot m1) = liftM not (go m1)
go (MOp o) = o v