git.haskell.org
/
ghc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base: Remove `Monad(fail)` method and reexport `MonadFail(fail)` instead
[ghc.git]
/
libraries
/
base
/
Text
/
ParserCombinators
/
ReadPrec.hs
diff --git
a/libraries/base/Text/ParserCombinators/ReadPrec.hs
b/libraries/base/Text/ParserCombinators/ReadPrec.hs
index
8e763ce
..
df77045
100644
(file)
--- a/
libraries/base/Text/ParserCombinators/ReadPrec.hs
+++ b/
libraries/base/Text/ParserCombinators/ReadPrec.hs
@@
-81,10
+81,10
@@
instance Functor ReadPrec where
instance Applicative ReadPrec where
pure x = P (\_ -> pure x)
(<*>) = ap
+ liftA2 = liftM2
-- | @since 2.01
instance Monad ReadPrec where
- fail s = P (\_ -> fail s)
P f >>= k = P (\n -> do a <- f n; let P f' = k a in f' n)
-- | @since 4.9.0.0