[GHC] #10471: Confusing parse error when forgetting "deriving"

GHC ghc-devs at haskell.org
Mon Jun 1 22:28:37 UTC 2015


#10471: Confusing parse error when forgetting "deriving"
-------------------------------------+-------------------------------------
        Reporter:                    |                   Owner:
  AlexanderThiemann                  |                  Status:  closed
            Type:  bug               |               Milestone:
        Priority:  normal            |                 Version:  7.6.3
       Component:  Compiler          |                Keywords:
      Resolution:  duplicate         |            Architecture:
Operating System:  Unknown/Multiple  |  Unknown/Multiple
 Type of failure:  Incorrect         |               Test Case:
  warning at compile-time            |                Blocking:
      Blocked By:                    |  Differential Revisions:
 Related Tickets:  #8612             |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #8612


Comment:

 With 7.8 or newer you'd get:
 {{{
 test.hs:5:6: error:
     Record syntax is illegal here: {f_x :: Int, f_y :: Int}

 test.hs:5:8: error: Not in scope: ‘f_x’

 test.hs:6:8: error: Not in scope: ‘f_y’
 }}}

 This was reported before, in #8612, and then closed as "not ideal, but
 acceptable".

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


More information about the ghc-tickets mailing list