XML character dereferencer

Just in case you ever need one:

In ghci:

*Foo> xmlCharDeref "hello there"
"hello there"
*Foo> xmlCharDeref "hello there"
"hello there"
*Foo> xmlCharDeref "hello2there"
"hello2there"
⟸ Any Haskell puzzlers? Dear Google Code, ⟹

Magnus

@Chris: Except of course that the type would be

In any case it’s hardly worth doing for the particular case where I had use for this function.

Leave a comment