[GHC] #6020: "Couldn't match kind" with free type variables and PolyKinds
GHC
cvs-ghc at haskell.org
Fri Apr 20 15:33:25 CEST 2012
#6020: "Couldn't match kind" with free type variables and PolyKinds
---------------------------------------+------------------------------------
Reporter: atnnn | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 7.5 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC rejects valid program | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------------+------------------------------------
Comment(by atnnn):
Pinning the kind makes the instance work:
{{{
instance (Id x y, Id y z) => Test x (z :: Bool)
}}}
But using kind variables doesn't:
{{{
instance (Id x (y :: k), Id y z) => Test x (z :: k)
}}}
{{{
Not in scope: type variable `k'
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6020#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list