<div dir="ltr">Hi,<div><br></div><div>One of my colleagues asked about using Unicode symbols in Haskell operators and I initially thought that this was supported.</div><div><br></div><div>However, the code at the bottom of this message doesn't parse, reporting a lexical error on basically all of the funny characters of the form:</div><div><br></div><div>Main.hs:1:5: error: lexical error at character '\65288'<br></div><div><br></div><div>Character 65288 (0xff08) is punctuation [Ps] which I understand to mean it counts as a uniSymbol in the lexical structure described in the Haskell Report.</div><div><br></div><div><a href="https://www.haskell.org/onlinereport/haskell2010/haskellch2.html#x7-160002.2">https://www.haskell.org/onlinereport/haskell2010/haskellch2.html#x7-160002.2</a></div><div><br></div><div>Should this work? Not that I really want this specific example to work, but I'm interested to know why.<br></div><div><br></div><div>Many thanks,</div><div><br></div><div>David</div><div><br></div><div><br></div><div><div>$ cat app/Main.hs</div><div>foo (›’-’)› bar = False</div><div>foo ‹(’-’‹) bar = False</div><div>foo ∧(’-’)∧ bar = False</div><div>foo ∨(’-’)∨ bar = False</div><div>$ cat app/Main.hs | base64 # try and avoid mangling in email</div><div>Zm9vIO+8iOKAuuKAmS3igJnvvInigLogYmFyID0gRmFsc2UKZm9vIOKAue+8iOKAmS3igJnigLnv</div><div>vIkgYmFyID0gRmFsc2UKZm9vIOKIp++8iOKAmS3igJnvvIniiKcgYmFyID0gRmFsc2UKZm9vIOKI</div><div>qO+8iOKAmS3igJnvvIniiKggYmFyID0gRmFsc2UK</div></div><div><br></div><div><br></div></div>