[GHC] #10996: family is treated as keyword in types even without TypeFamilies enabled

GHC ghc-devs at haskell.org
Thu Oct 22 07:25:05 UTC 2015


#10996: family is treated as keyword in types even without TypeFamilies enabled
-------------------------------------+-------------------------------------
        Reporter:  oerjan            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHC rejects       |            Test Case:  type Test
  valid program                      |  family = family
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Oerjan, that's exactly right.  I'm not sure how much effort it's worth
 devoting to this, but I agree that that the current situation is a mess:
  * Most things are dealt with as `special_id`; good
  * 'forall' has its own special lexer treatment, so at least it is not
 stolen until you switch on `ExplicitForAlls`
  * But 'role' and 'family' are stolen all the time, in types.  Which is a
 Haskell 98 or 2010 violation.

 It's annoying!

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


More information about the ghc-tickets mailing list