Opened 15 months ago

Last modified 6 months ago

#7650 new bug

can't use combining characters in identifiers

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


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 (4)

comment:1 Changed 15 months ago by igloo

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

comment:2 Changed 12 months ago by igloo

  • Milestone set to 7.8.1

Thanks for the report.

comment:3 Changed 12 months ago by batterseapower

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

comment:4 Changed 6 months ago by nomeata

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

Note: See TracTickets for help on using tickets.