git.iko.soy/typeable/attoparsec
on master help sign in
Merge
commitbfe3cf33e310d356462501257368062e2831cd30 authorBryan O'Sullivan <bos@serpentine.com> dateSun 7 Nov 2010, 08:52 (16 years ago) parent985e8f7ba22495
1 file changed+1−1
benchmarks/Tiny.hs+1−1
benchmarks/Tiny.hs+1−1
@@ -14,7 +14,7 @@ attoparsec = do
1414 A.Done _ xs -> print (length xs)
1515 what -> print what
1616 where
17− slow = A.many (A.many1 A.letter <|> A.many1 A.digit)
17+ slow = A.many (A.many1 A.letter_ascii <|> A.many1 A.digit)
1818 fast = A.many (A.takeWhile1 isLetter <|> A.takeWhile1 isDigit)
1919 isDigit c = c >= '0' && c <= '9'
2020 isLetter c = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')