[Haskell-cafe] some ideas for Haskell', from Python

Marc Weber marco-oweber at gmx.de
Thu Jan 15 06:35:08 EST 2009


>  1) In a Python string it is available the \U{name} escape, where name is
>     a character name in the Unicode database.
> 
>     As an example:
>         foo = u"abc\N{VULGAR FRACTION ONE HALF}"
> 
I think you can use quasi quotation of ghc to achieve this ?
Your code would look like this then:
  let foo = [$mystr|abc\N{VULGAR FRACTION ONE HALF}]

Sincerly
Marc Weber


More information about the Haskell-Cafe mailing list