[GHC] #9576: -fdefer-type-errors doesn't defer errors from `deriving`

#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

#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
Resolution: | Keywords:
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: | Blocked By:
None/Unknown | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#9576: -fdefer-type-errors doesn't defer errors from `deriving` -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | deriving/should_run/T9576 | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => deriving/should_run/T9576 * resolution: => fixed Comment: Good suggestion, thanks. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9576#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC