[Haskell-cafe] Unicode silliness
David Turner
dct25-561bs at mythic-beasts.com
Thu Jul 13 15:28:07 UTC 2017
On 13 July 2017 at 16:20, Clinton Mead <clintonmead at gmail.com> wrote:
> And also:
>
> > foo (›’-’)› bar = False
>
> should be
>
> > foo ›(’-’)› bar = False
>
> I'd suggest ensuring your code compiles without the unicode first, before
> trying to add the unicode symbols, so you can be sure it's the unicode
> causing the problem.
>
It does. This is fine:
> foo ?!?!?!? bar = False
It's the Unicode punctuation that isn't. Note that the things that look
like parentheses aren't ASCII parentheses, they're U+FF08 FULLWIDTH LEFT
PARENTHESIS and U+FF09 FULLWIDTH RIGHT PARENTHESIS, which are in classes Ps
and Pe respectively, and the code I linked to earlier seems to dislike
those classes.
Cheers,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170713/ddf9e79e/attachment.html>
More information about the Haskell-Cafe
mailing list