15 Jan 12:35
Re: some ideas for Haskell', from Python
Marc Weber <marco-oweber <at> gmx.de>
2009-01-15 11:35:08 GMT
2009-01-15 11:35:08 GMT
> 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
RSS Feed