[Haskell-cafe] needsaname :: ([a] -> Maybe (b,
[a])) -> (b -> [a]) -> [a] -> [a]
Bulat Ziganshin
bulat.ziganshin at gmail.com
Fri Jul 6 14:06:58 EDT 2007
Hello Jules,
Friday, July 6, 2007, 10:00:12 PM, you wrote:
> to think of many more uses of this function. I actually wrote it to do
> HTML fix-up, working with the TagSoup library. A few quick definitions
> and it becomes easy to express things like 'remove all FONT, BR and U
> tags; replace all instances of B with SPAN CLASS="important"...'; the
> task of repairing broken HTML and replacing simplistic markup with
> semantic markup. It's very powerful to have the separation between
> selection and transformation; it's quite easy to build up powerful
> libraries of selectors and use them with simple transformers.
hm. are you know about existence of haskell regexp libs? :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list