mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-12-25 17:22:33 +03:00
Use ‘const’
This commit is contained in:
parent
c73a2239b9
commit
028b775885
@ -265,7 +265,7 @@ pMap f p = ParsecT $ \s cok cerr eok eerr ->
|
|||||||
instance A.Applicative (ParsecT s m) where
|
instance A.Applicative (ParsecT s m) where
|
||||||
pure = pPure
|
pure = pPure
|
||||||
(<*>) = ap
|
(<*>) = ap
|
||||||
p1 *> p2 = p1 `pBind` \_ -> p2
|
p1 *> p2 = p1 `pBind` const p2
|
||||||
p1 <* p2 = do { x1 <- p1 ; void p2 ; return x1 }
|
p1 <* p2 = do { x1 <- p1 ; void p2 ; return x1 }
|
||||||
|
|
||||||
instance A.Alternative (ParsecT s m) where
|
instance A.Alternative (ParsecT s m) where
|
||||||
|
Loading…
Reference in New Issue
Block a user