[GHC] #7224: Polymorphic kind annotations on type classes don't always work as expected

GHC cvs-ghc at haskell.org
Mon Sep 17 12:12:23 CEST 2012


#7224: Polymorphic kind annotations on type classes don't always work as expected
---------------------------------------+------------------------------------
 Reporter:  slindley                   |          Owner:                         
     Type:  bug                        |         Status:  new                    
 Priority:  normal                     |      Component:  Compiler (Type checker)
  Version:  7.6.1-rc1                  |       Keywords:  kind polymorphism      
       Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple       
  Failure:  GHC rejects valid program  |       Testcase:                         
Blockedby:                             |       Blocking:                         
  Related:                             |  
---------------------------------------+------------------------------------

Comment(by simonpj@…):

 commit 77b63e74454170bd658c6773b9d5c172920d5cc5
 {{{
 Author: Simon Peyton Jones <simonpj at microsoft.com>
 Date:   Mon Sep 10 13:13:24 2012 +0100

     Two fixes to kind unification

     * Don't unify a kind signature-variable with non-tyvar kind
     * Don't allow a kind variable to appear in a type
       (Trac #7224)

  compiler/typecheck/TcHsType.lhs |    9 +++++++--
  compiler/typecheck/TcUnify.lhs  |   20 ++++++++++++++------
  2 files changed, 21 insertions(+), 8 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7224#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list