[GHC] #12589: GHC panic with defer-typed-holes

GHC ghc-devs at haskell.org
Wed Oct 12 19:19:13 UTC 2016


#12589: GHC panic with defer-typed-holes
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 This program:

 {{{#!hs
 {-# LANGUAGE ConstraintKinds #-}
 {-# LANGUAGE RankNTypes #-}
 {-# LANGUAGE TypeApplications #-}

 import Data.Proxy

 hcpure :: proxy c -> (forall a. c a => f a) -> h f xs
 hcpure _ _ = undefined

 a = minBound
   & hcpure (Proxy @Bounded)
 }}}

 produces that GHC panic with GHC 8.0.1, but not with GHC 8.0.2 or HEAD.

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


More information about the ghc-tickets mailing list