ocramz / aeson-schema

Haskell JSON schema validator and parser generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFC] Native replacement for regex-pcre ?

ocramz opened this issue · comments

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?

regex-dfa/regex-tdfa are native AFAIU; not sure if they are a simple drop-in

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

Closed by #21