[GHC] #15711: Kind inference of class variables does not examine associated types

#15711: Kind inference of class variables does not examine associated types -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Keywords: TypeInType | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If I say this {{{ {-# LANGUAGE TypeFamilies, PolyKinds, DataKinds #-} module Bug where class C a where type F (x :: Maybe a) }}} then GHCi says this {{{ *Bug> :k C C :: k -> Constraint }}} That's silly. `C` should have kind `Type -> Constraint`, because the usage of `a` in the kind of the associated type constraints `a`'s kind. Will fix. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15711 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15711: Kind inference of class variables does not examine associated types
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.1
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Richard Eisenberg

#15711: Kind inference of class variables does not examine associated types -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): It looks like I forgot to add a test case. If someone gets to this before I do, I'd be grateful. Perhaps tomorrow. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15711#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15711: Kind inference of class variables does not examine associated types -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_compile/T15711 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * testcase: => indexed-types/should_compile/T15711 * status: new => closed * resolution: => fixed Comment: Test case added in c1db1eb028b6962bac904975a6730edc6935ca8f -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15711#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC