Skip to content

Commit 498cc83

Browse files
committed
Fix pure for ParserT
1 parent ee0e8ea commit 498cc83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Parsing/Parser.purs.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ instance applyParserT :: (Monad m) => Apply (ParserT s m) where
4949
(<*>) = ap
5050

5151
instance applicativeParserT :: (Monad m) => Applicative (ParserT s m) where
52-
pure = return
52+
pure a = ParserT (pure a)
5353

5454
instance alternativeParserT :: (Monad m) => Alternative (ParserT s m) where
5555
empty = ParserT empty

0 commit comments

Comments
 (0)