[GHC] #11012: Support for unicode primes on identifiers.

GHC ghc-devs at haskell.org
Sat Oct 24 04:49:38 UTC 2015


#11012: Support for unicode primes on identifiers.
-------------------------------------+-------------------------------------
           Reporter:  ghartshaw      |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  low            |         Milestone:
          Component:  Compiler       |           Version:  7.10.2
  (Parser)                           |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 GHC should allow the (single/double/triple/quadruple) prime characters in
 Unicode to be allowed in identifiers. This would make them consistent with
 the ASCII apostrophe, which is usually used in place of a single prime.
 The current workaround for primes (using one or more apostrophes) is
 unwieldy for higher primes (e.g. {{{a'''}}} and {{{a''''}}}).

 All of the following identifiers should be valid.
 {{{
 a'   // U+0027 APOSTROPHE
 a′   // U+2032 PRIME
 a″   // U+2033 DOUBLE PRIME
 a‴   // U+2034 TRIPLE PRIME
 a⁗   // U+2057 QUADRUPLE PRIME
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11012>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list