Opened 2 years ago

Last modified 3 months ago

#7650 new bug

can't use combining characters in identifiers

Reported by: guest Owned by:
Priority: normal Milestone: 7.12.1
Component: Compiler Version: 7.6.2
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:


ghc doesn't let me use combining characters in unicode identifiers. Here's a test case with U+308 (COMBINING DIAERESIS) but it affects all accents:

% cat comb.hs
main = print spın̈alTap
    where spın̈alTap = 11
 % ghc comb.hs
[1 of 1] Compiling Main             ( comb.hs, comb.o )

comb.hs:1:18: lexical error at character '\776'

(This is actually with ghc 7.6.2 but the Version drop-down only goes up to 7.6.1.)

Change History (6)

comment:1 Changed 2 years ago by igloo

  • difficulty set to Unknown
  • Version changed from 7.6.1 to 7.6.2

comment:2 Changed 2 years ago by igloo

  • Milestone set to 7.8.1

Thanks for the report.

comment:3 Changed 2 years ago by batterseapower

Possibly fixable by rewriting the lexer to use alex 3...

comment:4 Changed 18 months ago by nomeata

GHC already uses alex-3.1.0; that alone did not fix it.

comment:5 Changed 11 months ago by thoughtpolice

  • Milestone changed from 7.8.3 to 7.10.1

Moving to 7.10.1

comment:6 Changed 3 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

Note: See TracTickets for help on using tickets.