parsec:Text.ParserCombinators.Parsec.Token wibble

Sigbjorn Finne sof at galois.com
Fri Feb 20 13:55:32 EST 2009


Hi,

the ASCII caret escape handling in the above module's makeTokenParser isn't
quite right -- off by one, and only supporting A-Z carets. Could someone 
with
privs (and maintainership badge) commit the following tweak?

foo$ darcs whatsnew
hunk ./Text/ParserCombinators/Parsec/Token.hs 196
-                        ; code <- upper
-                        ; return (toEnum (fromEnum code - fromEnum 'A'))
+                        ; code <- (oneOf ['@'..'_']) <|> char '?'
+                        ; return (if code == '?' then '\DEL' else 
toEnum (fromEnum code - fromEnum '@'))

cheers
--sigbjorn



More information about the Libraries mailing list