
#11334: GHC panic when calling typeOf on a promoted data constructor -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: bgamari Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler (Type | Version: 8.0.1-rc1 checker) | Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1757 Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I'm very confused. Why would we error in the case of calling `print (typeOf (Proxy :: Proxy 'Comp))` whenever `-XNoPolyKinds` is enabled, whereas something like `print (typeOf (Proxy :: Proxy 'Proxy))` is OK? The latter currently yields `"Proxy (Proxy * *) 'Proxy"` when `-XNoPolyKinds` is on (or is this a bug?). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11334#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler