[GHC] #12792: Wrong error message when using a data type as a class instance head

GHC ghc-devs at haskell.org
Wed Nov 30 15:26:59 UTC 2016


#12792: Wrong error message when using a data type as a class instance head
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 We don't have `TyCon`s in the renamer; only `Name`s.

 (Unless imported, or from an earlier GHCi line. So yes, for imported
 things one could do better. Maybe that is useful enough to do.)

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


More information about the ghc-tickets mailing list