[GHC] #2687: Lexical error when compiling unicode-prelude-0.1
using GHC 6.10.1 RC1
GHC
trac at galois.com
Sun Oct 12 08:48:47 EDT 2008
#2687: Lexical error when compiling unicode-prelude-0.1 using GHC 6.10.1 RC1
------------------------+---------------------------------------------------
Reporter: albertfong | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.10.1
Component: Compiler | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Windows |
------------------------+---------------------------------------------------
Changes (by igloo):
* priority: normal => high
* difficulty: => Unknown
* milestone: => 6.10.1
Comment:
Hmm, this is:
{{{
U+00B7 MIDDLE DOT
Unicode category: Punctuation, Other
}}}
which is the same category as !, %, *, etc.
The report says
{{{
uniSymbol -> any Unicode symbol or punctuation
}}}
Currently the lexer thinks that
{{{
UppercaseLetter -> upper
LowercaseLetter -> lower
TitlecaseLetter -> upper
ModifierLetter -> other_graphic
OtherLetter -> lower -- see #1103
NonSpacingMark -> other_graphic
SpacingCombiningMark -> other_graphic
EnclosingMark -> other_graphic
DecimalNumber -> digit
LetterNumber -> other_graphic
OtherNumber -> other_graphic
ConnectorPunctuation -> other_graphic
DashPunctuation -> other_graphic
OpenPunctuation -> other_graphic
ClosePunctuation -> other_graphic
InitialQuote -> other_graphic
FinalQuote -> other_graphic
OtherPunctuation -> other_graphic
MathSymbol -> symbol
CurrencySymbol -> symbol
ModifierSymbol -> symbol
OtherSymbol -> symbol
Space -> space
_ -> non_graphic
}}}
so at least some of the punctuation characters should be symbol rather
than graphic. Should they all be? H98 does say so, although I'm not sure
if it intended to include open and closing punctuation (which I assume
means various shapes of brackets).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2687#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list