projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-08-04 18:07:49 by panne]
[ghc-base.git]
/
Text
/
ParserCombinators
/
ReadPrec.hs
diff --git
a/Text/ParserCombinators/ReadPrec.hs
b/Text/ParserCombinators/ReadPrec.hs
index
ae4a365
..
1fbada4
100644
(file)
--- a/
Text/ParserCombinators/ReadPrec.hs
+++ b/
Text/ParserCombinators/ReadPrec.hs
@@
-47,6
+47,7
@@
module Text.ParserCombinators.ReadPrec
import Text.ParserCombinators.ReadP
( ReadP
import Text.ParserCombinators.ReadP
( ReadP
+ , ReadS
, readP_to_S
, readS_to_P
)
, readP_to_S
, readS_to_P
)
@@
-136,12
+137,6
@@
choice ps = foldr (+++) pfail ps
-- ---------------------------------------------------------------------------
-- Converting between ReadPrec and Read
-- ---------------------------------------------------------------------------
-- Converting between ReadPrec and Read
-#ifdef __GLASGOW_HASKELL__
--- We define a local version of ReadS here,
--- because its "real" definition site is in GHC.Read
-type ReadS a = String -> [(a,String)]
-#endif
-
readPrec_to_P :: ReadPrec a -> (Int -> ReadP a)
readPrec_to_P (P f) = f
readPrec_to_P :: ReadPrec a -> (Int -> ReadP a)
readPrec_to_P (P f) = f