[GHC] #8660: unexpected parsing error, "in" is treated as reserved word in type class constraints

GHC ghc-devs at haskell.org
Fri Jan 10 18:53:44 UTC 2014


#8660: unexpected parsing error, "in" is treated as reserved word in type class
constraints
--------------------------------------+------------------------------------
        Reporter:  carter             |            Owner:
            Type:  bug                |           Status:  closed
        Priority:  normal             |        Milestone:
       Component:  Compiler (Parser)  |          Version:  7.7
      Resolution:  invalid            |         Keywords:
Operating System:  Unknown/Multiple   |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown       |       Difficulty:  Unknown
       Test Case:                     |       Blocked By:
        Blocking:                     |  Related Tickets:
--------------------------------------+------------------------------------

Comment (by carter):

 agree, I'm moreso suggesting that the error message should be more like

 "error, unexpected reserved word "in" at $FILE:LOCATION" rather than
 "there was a syntax error here".

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


More information about the ghc-tickets mailing list