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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Jan 14 19:02:34 EST 2009

On 2009 Jan 14, at 10:39, Manlio Perillo wrote:
> Neil Mitchell ha scritto:
>> Hi
>>> 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}"
>> Hmm, looks nice, and sensible. But as soon as you've got \N{....}  
>> syntax I want:
>> "foo\E{show i}bar"
> How this should/can work?
> There is Text.Printf for this.

I vaguely recall seeing some TH go by that did this (albeit with $()  
TH foo).

> Sometime they are necessary, to avoid circular import problems (but  
> this not a problem with Haskell).

...in theory. In practice GHC needs help with circular imports, and  
some cycles might be impossible to resolve.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list