
#9858: Typeable instances should be kind-aware -------------------------------------+------------------------------------- Reporter: dreixel | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.10.2 Component: Compiler | Version: 7.9 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_fail/T9858a,b,c; | should_run/T9858b Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D652, Wiki Page: | Phab:D757 -------------------------------------+------------------------------------- Changes (by bgamari): * differential: Phab:D652 => Phab:D652, Phab:D757 Old description:
{{{ {-# LANGUAGE DataKinds #-} {-# LANGUAGE AutoDeriveTypeable #-}
import Data.Typeable
data A = A
main = print $ typeRep (Proxy :: Proxy A) == typeRep (Proxy :: Proxy 'A) }}}
This returns `True`, but it should return `False`.
New description: {{{#!hs {-# LANGUAGE DataKinds #-} {-# LANGUAGE AutoDeriveTypeable #-} import Data.Typeable data A = A main = print $ typeRep (Proxy :: Proxy A) == typeRep (Proxy :: Proxy 'A) }}} This returns `True`, but it should return `False`. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9858#comment:118 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler