[GHC] #10524: PolyKinds doesn't interact well with DeriveFunctor

GHC ghc-devs at haskell.org
Tue Jun 16 13:02:32 UTC 2015


#10524: PolyKinds doesn't interact well with DeriveFunctor
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 FWIW this isn't a regression, 7.8 fails with the same error and 7.6 bails
 out even earlier. And isn't 7.10's behavior in fact the correct one? The
 instance produced by 7.11 is ill-kinded:
 {{{
 instance [safe] forall (k :: BOX) (f :: k -> *) (g :: * -> k).
                 (Functor f, Functor g) =>
                 Functor (Compose f g)
 }}}
 `Functor`'s argument must really be of kind `* -> *`. (Though I don't know
 if this will cause any harm beyond confusing error messages down the
 line.)

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


More information about the ghc-tickets mailing list