File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 31
31
32
32
instance monadParserT :: (Monad m) => Monad (ParserT s m)
33
33
34
+ instance monadPlusParserT :: (Monad m) => MonadPlus (ParserT s m)
35
+
34
36
instance monadStateParserT :: (Monad m) => MonadState s (ParserT s m)
35
37
36
38
instance monadTransParserT :: MonadTrans (ParserT s)
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import Control.Monad.State.Trans
16
16
import Control.Monad.Error
17
17
import Control.Monad.Error.Class
18
18
import Control.Monad.Error.Trans
19
+ import Control.MonadPlus
19
20
20
21
data ParseError = ParseError
21
22
{ message :: String
@@ -72,6 +73,8 @@ instance bindParserT :: (Monad m) => Bind (ParserT s m) where
72
73
73
74
instance monadParserT :: (Monad m ) => Monad (ParserT s m )
74
75
76
+ instance monadPlusParserT :: (Monad m ) => MonadPlus (ParserT s m )
77
+
75
78
instance monadTransParserT :: MonadTrans (ParserT s ) where
76
79
lift m = ParserT $ \s -> (\a -> { input: s, consumed: false , result: Right a }) <$> m
77
80
You can’t perform that action at this time.
0 commit comments