[Haskell-cafe] Edmonton Functional Programming Users Group meets June 5

2012-06-04 Thread Kevin Charter
, 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

Re: [Haskell-cafe] Confused by ghci output

2012-05-31 Thread Kevin Charter
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

Re: [Haskell-cafe] Troubles understanding Parsec Error Handling

2012-05-30 Thread Kevin Charter
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

Re: [Haskell-cafe] Troubles understanding Parsec Error Handling

2012-05-30 Thread Kevin Charter
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

Re: [Haskell-cafe] Troubles understanding Parsec Error Handling

2012-05-30 Thread Kevin Charter
. 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

Re: [Haskell-cafe] Can Haskell outperform C++?

2012-05-16 Thread Kevin Charter
. 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

Re: [Haskell-cafe] Can Haskell outperform C++?

2012-05-16 Thread Kevin Charter
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

[Haskell-cafe] Edmonton Functional Programming Users Group (EFPUG)

2012-05-02 Thread Kevin Charter
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

Re: [Haskell-cafe] I am having trouble with the type declaration for creating an identity matrix.

2012-04-24 Thread Kevin Charter
correct. Kevin -- Kevin Charter kevin.char...@acm.org ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How do you test a parser?

2011-06-11 Thread Kevin Charter
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