[GHC] #9576: -fdefer-type-errors doesn't defer errors from `deriving`
GHC
ghc-devs at haskell.org
Thu Sep 11 20:13:07 UTC 2014
#9576: -fdefer-type-errors doesn't defer errors from `deriving`
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.3
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Unknown | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
When I say
{{{#!hs
{-# OPTIONS_GHC -fdefer-type-errors #-}
data Foo = MkFoo
data Bar = MkBar Foo
deriving Show
}}}
I get a type error that there is no instance for `Show Foo`. This error
should be deferred.
Using standalone-deriving works just fine, though.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9576>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list