Text.Regex library with bytestrings?
kathleen.fisher at gmail.com
Mon May 24 18:31:46 EDT 2010
Is it possible to use the Text.Regex API with ByteStrings instead of Strings? It looks like there is support for using PCREs with either Strings and ByteStrings, but if you want to use the high-level API in Text.Regex (ie, mkRegex, matchRegexAll, etc), you have to use Strings. For Bytestrings, you can use the lower level API in Text.Regex.Posix.ByteString, but then you are in the IO monad, which I'd rather avoid. Am I missing something?
Thanks for any pointers!
More information about the Libraries