,
including Parsec, attoparsec, uu-parsinglib, and parsatron, a Clojure
library inspired by Parsec. Everyone is welcome.
https://groups.google.com/forum/?fromgroupshl=en#!forum/edmonton-functional-programming-users-group
Kevin
--
Kevin Charter
kevin.char...@acm.org
that (3^40) is an Int. But an Int isn't big enough to hold 3^40.
Prelude 3^40 :: Int
-6289078614652622815
Prelude (3^40 :: Int) `mod` 3
2
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
in mind that 'try p' pretends
that it hasn't consumed input when 'p' fails.
I don't think you need to use 'try' in your 'anyOf' function, but you'll
have to change it to handle seeing the end of input if the one-character
look-ahead fails.
Kevin
--
Kevin Charter
kevin.char...@acm.org
On Wed, May 30, 2012 at 3:11 PM, Kevin Charter kchar...@gmail.com wrote:
What version of parsec 3 are you using? In version 3.1.1, I get (using
Text.Parsec.String instead of Text.Parsec.Text):
Ah, answered my own question. I gather you're using 3.1.2, since it's the
first and so far only
.
And Roman, thanks for the light-speed patch! I was about to say I had an
example that showed the problem might actually have to do with 'lookAhead'
rather than 'try', and then I saw your message.
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe
. Not so much that it's typically two or three or ten
times slower than language X, but that it's easy to have a bad
experience *early
on*, one that seems inconsistent with the language shoot-out and other
performance comparisons.
Kevin
--
Kevin Charter
kevin.char...@acm.org
acceptable
performance with GHC when I've made good use of the tools for finding space
and time leaks. And it hasn't been hard, just something I had to learn to
do.
Gregg
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe mailing list
Haskell
activities, are always welcome.
Cheers,
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
correct.
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
need 't' to strip them
out.
Kevin
--
Kevin Charter
kevin.char...@acm.org
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
10 matches
Mail list logo