#10604: Make Generic1 kind polymorphic -------------------------------------+------------------------------------- Reporter: DerekElkins | Owner: RyanGlScott Type: feature request | Status: patch Priority: low | Milestone: 8.2.1 Component: Core Libraries | Version: 7.10.1 Resolution: | Keywords: Generics Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2168 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"b8e2565123de45f215277e3a92fbc7ace2b8fd71/ghc" b8e25651/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="b8e2565123de45f215277e3a92fbc7ace2b8fd71" Make Generic1 poly-kinded This generalizes the `Generic1` typeclass to be of kind `k -> *`, and this also makes the relevant datatypes and typeclasses in `GHC.Generics` poly-kinded. If `PolyKinds` is enabled, `DeriveGeneric` derives `Generic1` instances such that they use the most general kind possible. Otherwise, deriving `Generic1` defaults to make an instance where the argument is of kind `* -> *` (the current behavior). Fixes #10604. Depends on D2117. Test Plan: ./validate Reviewers: kosmikus, dreixel, goldfire, austin, hvr, simonpj, bgamari Reviewed By: simonpj, bgamari Subscribers: thomie, ekmett Differential Revision: https://phabricator.haskell.org/D2168 GHC Trac Issues: #10604 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10604#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler