[GHC] #8534: DeriveFunctor and PolyKinds
#8534: DeriveFunctor and PolyKinds -------------------------------------+------------------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler (Type | Version: 7.6.3 checker) | Operating System: Unknown/Multiple Keywords: | Type of failure: GHC rejects Architecture: Unknown/Multiple | valid program Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+------------------------------------- A tiny infelicity: {{{ {-# LANGUAGE DeriveFunctor #-} data A a = A deriving Functor }}} works only if `PolyKinds` is disabled, otherwise it reports that `A` has kind `k -> *` instead of expected `* -> *`. On the other hand, standalone deriving works fine. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8534> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8534: DeriveFunctor and PolyKinds ----------------------------------------------+---------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler (Type checker) | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"851548d8d14e1dcf79867855b49519421734ede6/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="851548d8d14e1dcf79867855b49519421734ede6" Improve the 'deriving' code for polykinded data types Fixes Trac #8534. See Note [Match kinds in deriving] in TcDeriv. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8534#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8534: DeriveFunctor and PolyKinds ----------------------------------------------+---------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler (Type checker) | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"7c10d0324008584b5455ec76550286c7c70dd049/testsuite"]: {{{ #!CommitTicketReference repository="testsuite" revision="7c10d0324008584b5455ec76550286c7c70dd049" Test Trac #8534 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8534#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8534: DeriveFunctor and PolyKinds ----------------------------------------------+---------------------------- Reporter: monoidal | Owner: Type: bug | Status: closed Priority: low | Milestone: Component: Compiler (Type checker) | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: polykinds/T8534 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Changes (by simonpj): * status: new => closed * testcase: => polykinds/T8534 * resolution: => fixed Comment: Thanks for identifying this. Simon -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8534#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC