
#12466: Typechecker regression: Inaccessible code in a type expected by the context -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler (Type | Version: 8.1 checker) | Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by simonpj): Hmm. Maybe just report when it arises from a GADT pattern match. That is the primary use-case: {{{ data T a where T1 :: T Int T2 :: T a T3 :: T Bool f :: T Int -> Bool f T1 = ... f T2 = ... f T3 = ... -- We want to report this case as inaccessible }}} I'll think on that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12466#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler