I think MarLinn was highlighting that this line:
foo ‹(’-’‹) bar = False
Should read like this:
foo ‹(’-’)‹ bar = False
On Fri, Jul 14, 2017 at 1:03 AM, David Turner <dct25-561bs@mythic-beasts.com
wrote:
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/49012ebc9ed44a0b1f8de3781e15c8 115d3074f8/compiler/parser/Lexer.x#L2013
Cheers,
David
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.