Skip to content

-fdefer-type-errors doesn't defer errors from `deriving`

When I say

{-# 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.

Trac metadata
Trac field Value
Version 7.8.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information