[GHC] #7939: RHS of associated type not kind-checked
GHC
cvs-ghc at haskell.org
Mon May 27 11:45:18 CEST 2013
#7939: RHS of associated type not kind-checked
----------------------------------------+-----------------------------------
Reporter: goldfire | Owner: goldfire
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC accepts invalid program | Blockedby:
Blocking: | Related:
----------------------------------------+-----------------------------------
The following code compiles without complaint:
{{{
{-# LANGUAGE TypeFamilies, PolyKinds #-}
class Foo a where
type Bar a
instance Foo Int where
type Bar Int = Maybe
instance Foo Bool where
type Bar Bool = Double
}}}
We can see here that {{{Bar}}} is ill-kinded. When I try {{{:k Bar}}} in
GHCi, I get an assertion failure, not unexpectedly.
I will fix in ongoing work.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7939>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list