text-icu
text-icu copied to clipboard
regex' leaks exception on empty regular expression
My understanding is that regex' was supposed to catch errors and wrap them in Left, however for an empty string we see:
Prelude Data.Text.ICU> regex' [] ""
*** Exception: ICUError U_ILLEGAL_ARGUMENT_ERROR