projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b42ff9
)
[project @ 2003-08-01 09:59:04 by ross]
author
ross
<unknown>
Fri, 1 Aug 2003 09:59:04 +0000
(09:59 +0000)
committer
ross
<unknown>
Fri, 1 Aug 2003 09:59:04 +0000
(09:59 +0000)
tiny doc fix
Text/ParserCombinators/ReadP.hs
patch
|
blob
|
history
diff --git
a/Text/ParserCombinators/ReadP.hs
b/Text/ParserCombinators/ReadP.hs
index
c05b983
..
654eda0
100644
(file)
--- a/
Text/ParserCombinators/ReadP.hs
+++ b/
Text/ParserCombinators/ReadP.hs
@@
-275,7
+275,7
@@
readP_to_S :: ReadP a -> ReadS a
-- ^ Converts a parser into a Haskell ReadS-style function.
-- This is the main way in which you can \"run\" a 'ReadP' parser:
-- the expanded type is
-- ^ Converts a parser into a Haskell ReadS-style function.
-- This is the main way in which you can \"run\" a 'ReadP' parser:
-- the expanded type is
--- @ readP_to_S :: ReadP a -> String -> [(String,String)] @
+-- @ readP_to_S :: ReadP a -> String -> [(a,String)] @
readP_to_S (R f) = run (f return)
readS_to_P :: ReadS a -> ReadP a
readP_to_S (R f) = run (f return)
readS_to_P :: ReadS a -> ReadP a