[GHC] #7601: Internal error with kind annotation on associated type family

#7601: Internal error with kind annotation on associated type family -----------------------------+---------------------------------------------- Reporter: dreixel | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: polykinds Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- The following module: {{{ {-# LANGUAGE PolyKinds #-} {-# LANGUAGE TypeFamilies #-} module Bug where class C (a :: k) where type F (a :: k) }}} Makes GHC raise an internal error: {{{ GHC internal error: `k' is not in scope during type checking, but it passed the renamer tcl_env of environment: [(reB, AThing forall (k :: BOX). k -> Constraint), (reC, AThing forall (k :: BOX) (k :: BOX). k -> k)] In the kind `k' In the class declaration for `C' }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7601 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7601: Internal error with kind annotation on associated type family
-----------------------------+----------------------------------------------
Reporter: dreixel | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords: polykinds
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Comment(by simonpj@…):
commit 82219ae218ac7e51e6d160cadd16dc030fa9c004
{{{
Author: Simon Peyton Jones

#7601: Internal error with kind annotation on associated type family -------------------------------+-------------------------------------------- Reporter: dreixel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: polykinds Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: polykinds/T7601 | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by simonpj): * status: new => closed * difficulty: => Unknown * resolution: => fixed * testcase: => polykinds/T7601 Comment: Good point. Thanks. Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7601#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC