[Haskell-cafe] Unicode silliness
David Turner
dct25-561bs at mythic-beasts.com
Thu Jul 13 15:03:53 UTC 2017
On 13 July 2017 at 12:58, MarLinn <monkleyon at gmail.com> wrote:
> foo (›’-’)› bar = False
>>
>> Main.hs:1:5: error: lexical error at character '\65288'
>>
>
> Brackets.
>
Yes, brackets, but why is this a problem?
I found this code [1] in GHC which seems like it might be relevant. Is it?
It seems to suggest that classes Pc, Pd, Po, Sm, Sc, Sk and So are allowed
in infix names, but Ps, Pe, Pi and Pf are not. Am I reading that right?
[1]
https://github.com/ghc/ghc/blob/49012ebc9ed44a0b1f8de3781e15c8115d3074f8/compiler/parser/Lexer.x#L2013
Cheers,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170713/968dd45f/attachment.html>
More information about the Haskell-Cafe
mailing list