On 13 July 2017 at 12:58, MarLinn <monkleyon@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