[RFC] Native replacement for regex-pcre ?
ocramz opened this issue · comments
Marco Z commented
I just ran into a build failure on a machine that doesn't have pkg-config (2020 Mac M1)
Are there native Haskell replacements for regular expressions we could use here instead?
Mateusz Kowalczyk commented
regex-dfa/regex-tdfa are native AFAIU; not sure if they are a simple drop-in
Marco Z commented
It looks like regex-tdfa
could work since makeRegexM
is a typeclass method which has both pure and PCRE implementations : https://hackage.haskell.org/package/regex-tdfa-1.3.1.1/docs/Text-Regex-TDFA-String.html#v:makeRegexM
I can prepare a PR for this