[Haskell-cafe] Split and substitution using regex-pcre

Simon Marechal simon at banquise.net
Sun Feb 24 10:44:55 CET 2013


I could not find the perl-equivalents of these functions on Hackage, so
I quickly wrote mine. Code is there:

https://github.com/bartavelle/pcre-utils

It should behave like perl (not really tested actually), and do strange
things like :

> splitCompile "a" "aaaab"
Right ["","","","","b"]
> splitCompile "a" "aaaabaaa"
Right ["","","","","b"]

This will go on Hackage as I need it for the language-puppet package,
but I am interested in comments, especially concerning the namespaces:
* is the name of this package OK ?
* is the name of the package OK ?
* should I work with the regex-pcre maintainer to try to merge it ?




More information about the Haskell-Cafe mailing list