[GHC] #16002: Type family equation with wrong name is silently accepted (GHC 8.6+ only)

GHC ghc-devs at haskell.org
Thu Dec 6 08:36:25 UTC 2018


#16002: Type family equation with wrong name is silently accepted (GHC 8.6+ only)
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.6.2
      Resolution:                    |             Keywords:  TypeFamilies
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Ah yes, good catch.  I think the Right Thing is to move the test out of
 `kcTyFamInstEqn` and put it in `RnSource.rnFamInstEqn`.  That way it'll be
 nailed by the renamer, which has plenty of information to give a good
 error message.

 Would you consider doing that?

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


More information about the ghc-tickets mailing list