[GHC] #8616: "Internal error" with ScopedTypeVariables and kind variables
#8616: "Internal error" with ScopedTypeVariables and kind variables ------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- When I try to compile the following nonsense with HEAD {{{ {-# LANGUAGE PolyKinds, RankNTypes, ScopedTypeVariables #-} import Data.Proxy import GHC.Exts withSomeSing :: forall (kproxy :: k). Proxy kproxy withSomeSing = undefined :: (Any :: k) }}} I get this {{{ GHC internal error: ‛k’ is not in scope during type checking, but it passed the renamer tcl_env of environment: [(a4XG, Type variable ‛kproxy’ = kproxy), (r4MW, Identifier[withSomeSing::forall (k :: BOX) (kproxy :: k). Proxy k kproxy, <NotTopLevel>])] In the kind ‛k’ In an expression type signature: (Any :: k) In the expression: undefined :: (Any :: k) }}} The code is very bogus, but so is GHC's response. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8616> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8616: "Internal error" with ScopedTypeVariables and kind variables -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"17a3dacba03f7a800444c135e93ce1b81a89e158/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="17a3dacba03f7a800444c135e93ce1b81a89e158" Bring kind variables into the type-checker's scope as well as type variables Fixes Trac #8616 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8616#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8616: "Internal error" with ScopedTypeVariables and kind variables -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"2d9be8cb1152e78ae2408202663b20bcd9cb8ec2/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="2d9be8cb1152e78ae2408202663b20bcd9cb8ec2" Test Trac #8616 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8616#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8616: "Internal error" with ScopedTypeVariables and kind variables -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: polykinds/T8616 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * status: new => closed * testcase: => polykinds/T8616 * resolution: => fixed Comment: Fixed, thank you. Simon -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8616#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC