Quantcast

parsec:Text.ParserCombinators.Parsec.Token wibble

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

parsec:Text.ParserCombinators.Parsec.Token wibble

Sigbjorn Finne
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

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Loading...