Simon Marlow

Results 141 comments of Simon Marlow
trafficstars

Yes, this would be a great feature to have. Other people have done it before, e.g. I just found this: http://hackage.haskell.org/package/alex-meta There are probably others. Maybe there already exists a...

Not sure, it could be some bad interaction between the generated code and TemplateHaskell.

Let's keep support for 7.0.4 while it still works. If it becomes hard to support/test older versions we can increase the lower bound in the future.

This could be due to CPP interacting badly with the backslash-end-of-line sequence, see https://downloads.haskell.org/~ghc/master/users-guide/phases.html#cpp-and-string-gaps

It's not clear to me that this is a good idea in general. We don't know if continuing after an error is a sensible thing to do at all, so...

Take an example like this: `... "\xfffffff" ...` with a Haskell lexer. The character constant in the string is a lexical error because it's out of range, but if we...

Yes, I would really like to have this functionality. As I recall it was non-trivial to implement it (especially if we want to do it without a performance overhead if...

I'd happily accept a patch, provided it doesn't compromise the speed of non-streaming lexers.

Interesting. I have many questions :) Where is your Alex lexer for JSON? Do you have a parser too? Is it faster than aeson?