
#8865: Cannot derive well-kinded instance of form ‘Category ----------------------------------------------+---------------------------- Reporter: adinapoli | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: Resolution: fixed | 7.8.1-rc2 Operating System: MacOS X | Keywords: Type of failure: GHC rejects valid program | Architecture: x86_64 Test Case: | (amd64) Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (by Lemming): Just encountered this problem myself. It can be reproduced with the simple module: {{{ {-# LANGUAGE GeneralizedNewtypeDeriving #-} import Control.Arrow (Arrow) import Control.Category (Category) newtype Fails a b = Fails (a -> b) deriving (Category, Arrow) newtype Works a b = Works (a -> b) deriving (Arrow) instance Category Works where }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8865#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler