[GHC] #8963: GeneralizedNewtypeDeriving unusable on associated types

#8963: GeneralizedNewtypeDeriving unusable on associated types ------------------------------------+------------------------------------- Reporter: mojojojo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- This code: {{{ {-# LANGUAGE GeneralizedNewtypeDeriving #-} class C c where data F c r instance C Int where newtype F Int r = F (IO r) deriving (Functor) }}} fails to compile with the following message: {{{ Derived instance `Functor (F Int)' requires illegal partial application of data type family F In the newtype instance declaration for `F' }}} This might be related to https://ghc.haskell.org/trac/ghc/ticket/4185, but then it is marked as fixed in GHC 7.6.2, and I experience my error on 7.6.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8963: GeneralizedNewtypeDeriving unusable on associated types -------------------------------------+------------------------------------ Reporter: mojojojo | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: Yes, it was indeed fixed some time ago. We don't back-port language changes to patch releases (in this case 7.6.3). But the fix is in 7.8 which will be out any day. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8963: GeneralizedNewtypeDeriving unusable on associated types -------------------------------------+------------------------------------ Reporter: mojojojo | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by mojojojo): Oh great! Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8963: GeneralizedNewtypeDeriving unusable on associated types
-------------------------------------+------------------------------------
Reporter: mojojojo | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Simon Peyton Jones

#8963: GeneralizedNewtypeDeriving unusable on associated types
-------------------------------------+------------------------------------
Reporter: mojojojo | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Simon Peyton Jones

#8963: GeneralizedNewtypeDeriving unusable on associated types -------------------------------------+------------------------------------ Reporter: mojojojo | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: closed => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8963: GeneralizedNewtypeDeriving unusable on associated types -------------------------------------+------------------------------------ Reporter: mojojojo | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: merge => closed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8963: GeneralizedNewtypeDeriving unusable on associated types -------------------------------------+------------------------------------ Reporter: mojojojo | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.3 Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * milestone: => 7.8.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8963#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC