
#14331: Overzealous free-floating kind check causes deriving clause to be rejected -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler (Type | Version: 8.2.1 checker) | Resolution: | Keywords: deriving Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: GHC rejects | Test Case: valid program | deriving/should_compile/T14331 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I'm not sure how this is at odds? The example from #11732 is: {{{#!hs data Proxy k (a :: k) = ProxyCon deriving Generic1 }}} Here, we are unifying a kind variable //from the datatype// with `Type`, which is acceptable, instead of a kind variable from the class (as is the case in comment:51), which should be an error. Or am I missing something? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14331#comment:55 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler