Prelude Text.Regex.Pcre2> Text.Regex.Pcre2.matchOpt Ucp "\\d" "\x2460" -- ①
*** Exception: pcre2_compile: this version of PCRE2 does not have Unicode support
\d
^
I thought it did. package.yaml specifies -optc=-DSUPPORT_UNICODE=1. Not sure if this is a bug; we say "UTF-16" in the docs but we don't actually say Unicode is supported. Anyway, it could be, and should, even if using built-in Unicode and not ICU.
(Correct behavior would be to return empty because ① is not matched by \d in UCP mode. A better example would have been matching ℵ with \w since that is a Unicode letter.)
I thought it did.
package.yaml
specifies-optc=-DSUPPORT_UNICODE=1
. Not sure if this is a bug; we say "UTF-16" in the docs but we don't actually say Unicode is supported. Anyway, it could be, and should, even if using built-in Unicode and not ICU.