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 3131
3232 instance monadParserT :: (Monad m) => Monad (ParserT s m)
3333
34+ instance monadPlusParserT :: (Monad m) => MonadPlus (ParserT s m)
35+
3436 instance monadStateParserT :: (Monad m) => MonadState s (ParserT s m)
3537
3638 instance monadTransParserT :: MonadTrans (ParserT s)
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import Control.Monad.State.Trans
1616import Control.Monad.Error
1717import Control.Monad.Error.Class
1818import Control.Monad.Error.Trans
19+ import Control.MonadPlus
1920
2021data ParseError = ParseError
2122 { message :: String
@@ -72,6 +73,8 @@ instance bindParserT :: (Monad m) => Bind (ParserT s m) where
7273
7374instance monadParserT :: (Monad m ) => Monad (ParserT s m )
7475
76+ instance monadPlusParserT :: (Monad m ) => MonadPlus (ParserT s m )
77+
7578instance monadTransParserT :: MonadTrans (ParserT s ) where
7679 lift m = ParserT $ \s -> (\a -> { input: s, consumed: false , result: Right a }) <$> m
7780
You can’t perform that action at this time.
0 commit comments