projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
688a752
)
Tweak layout to be accepted by the alternative layout rul
author
Ian Lynagh
<igloo@earth.li>
Wed, 25 Nov 2009 19:41:47 +0000
(19:41 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 25 Nov 2009 19:41:47 +0000
(19:41 +0000)
Text/ParserCombinators/ReadP.hs
patch
|
blob
|
history
diff --git
a/Text/ParserCombinators/ReadP.hs
b/Text/ParserCombinators/ReadP.hs
index
09fc10d
..
fb506f6
100644
(file)
--- a/
Text/ParserCombinators/ReadP.hs
+++ b/
Text/ParserCombinators/ReadP.hs
@@
-307,7
+307,8
@@
munch1 :: (Char -> Bool) -> ReadP String
-- Hence NOT the same as (many1 (satisfy p))
munch1 p =
do c <- get
- if p c then do s <- munch p; return (c:s) else pfail
+ if p c then do s <- munch p; return (c:s)
+ else pfail
choice :: [ReadP a] -> ReadP a
-- ^ Combines all parsers in the specified list.