regex-pcre
doesn't support Windows, at least the current regex-pcre.cabal
doesn't work well on Windows.
Try regex-pcre-builtin, it's the same as regex-pcre
, but with PCRE sources bundled in.
I don't know why the author doesn't merge it into regex-pcre
, but creating a new package for this.