[GHC] #11241: Kind-level PartialTypeSignatures causes internal error

GHC ghc-devs at haskell.org
Thu Dec 17 16:19:51 UTC 2015


#11241: Kind-level PartialTypeSignatures causes internal error
-------------------------------------+-------------------------------------
           Reporter:  adamgundry     |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.11
  (Type checker)                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  GHC rejects
  Unknown/Multiple                   |  valid program
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Consider the following module:

 {{{#!hs
 {-# LANGUAGE ExplicitForAll, KindSignatures, PartialTypeSignatures #-}

 foo :: forall (a :: _) . a -> a
 foo = id
 }}}

 In HEAD, this fails with an internal errror:

 {{{
     • GHC internal error: ‘_’ is not in scope during type checking, but it
 passed the renamer
       tcl_env of environment: []
     • In the kind ‘_’
       In the type signature:
         foo :: forall (a :: _). a -> a
 }}}

 I would expect it to succeed and figure out that the wildcard is `*`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11241>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list