[Haskell-cafe] regex and Regular Expressions Libraries

Chris Dornan chris at chrisdornan.com
Fri Mar 10 18:04:14 UTC 2017


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





More information about the Haskell-Cafe mailing list