ref: 32955f7d003386968616bf2de273b2ab3422d982
parent: 7d2f32a9e5e2b27faa217fd3d9d2d2092f052861
author: Lennart Augustsson <lennart@augustsson.net>
date: Sat Jan 11 13:18:39 EST 2025
Add a force a string literal to be exact.
--- a/lib/Text/ParserCombinators/ReadP.hs
+++ b/lib/Text/ParserCombinators/ReadP.hs
@@ -312,7 +312,7 @@
scan s
where
scan (c:cs) | p c = do _ <- get; s <- scan cs; return (c:s)
- scan _ = return ""
+ scan _ = return (""::String)
munch1 :: (Char -> Bool) -> ReadP String
-- ^ Parses the first one or more characters satisfying the predicate.