[GHC] #15412: "Instance head is not headed by a class" when `Constraint` replaced with `type C = Constraint`

GHC ghc-devs at haskell.org
Wed Jul 18 08:42:06 UTC 2018


#15412: "Instance head is not headed by a class" when `Constraint` replaced with
`type C = Constraint`
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Can you give the code that fails?

 In general, in an instance
 {{{
 instance ... => C t1 t2 where ...
 }}}
 `C` must be a class; at least that's what the error message is complaining
 about.

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


More information about the ghc-tickets mailing list