Hi Chris,

The combination of parser combinators and the old regex libraries have meant  I've avoided regexes as much as possible.

regex looks very promising so I'm sure to try it out next time i need something similar!

Will you add regex to stackage? Having to muck around with extra-deps gets tiring. I would also like to see Text support, but having to pack/unpack wouldn't be a dealbreaker for me.

Have you considered doing anything fancy to make capture groups safer to use? If i could get a compile error when i'm using the wrong number/wrongly named groups I'd be very excited.

Cheers,
Adam



On Fri, 10 Mar 2017 at 19:06 Chris Dornan <chris@chrisdornan.com> wrote:
I must correct myself. I said:

> Being able to recover the text of the REs would be great and I would like to include
> it in a future release, but again that will need some coordination with the regex-base
> maintainers.

Sorry, that isn’t right at all. Regex already allows you to recover the text from a compiled
RE via the reSource function:

  reSource :: RE -> String

Evans said:

> Nowadays I inherit that from pcre-heavy, but of course if you're
> already on another backend then maybe not so simple.

Yes, regex is built on top of regex-base and the regex-tdfa + regex-pcre back ends.

> but you know tradition hangs heavy

Indeed so!

Chris



_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.