[GHC] #8068: ghc incorrectly accepts the Kannada TTHA character at the beginning of an identifier.

#8068: ghc incorrectly accepts the Kannada TTHA character at the beginning of an identifier. ------------------------------------+------------------------------------- Reporter: malcolmw | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- The code at http://hub.darcs.net/lelf/acme- lookofdisapproval/browse/Acme/LookOfDisapproval.lhs is accepted by ghc, but technically, the leading letter of the funny identifier (Kannada TTHA) is neither lowercase, uppercase, nor titlecase. It can be accepted in any position of an identifier except the first, where Haskell requires the character to be either upper/title-case (conid) or lower (varid). isLetter x && not (isUpper x) does not imply isLower(x). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8068 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8068: ghc incorrectly accepts the Kannada TTHA character at the beginning of an identifier. -------------------------------------+------------------------------------ Reporter: malcolmw | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by igloo): This is U+0CA0. Unicode category: Letter, Other. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8068#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8068: ghc incorrectly accepts the Kannada TTHA character at the beginning of an identifier. -------------------------------------+------------------------------------- Reporter: malcolmw | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: wontfix | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #1103 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => wontfix * related: => #1103 Comment: This was a conscious decision, see commit 0c266d7ac54ae27e693ef04e4679220a32da0694. {{{ Author: Simon Marlow <> Date: Wed Jul 9 09:12:52 2008 +0000 Treat the Unicode "Letter, Other" class as lowercase letters (#1103) This is an arbitrary choice, but it's strictly more useful than the current situation, where these characters cannot be used in identifiers at all. In Haskell' we may revisit this decision (it's on my list of things to discuss), but for now this is an improvement for those using caseless languages. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8068#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC