Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
19466 commits behind the upstream repository.
  • Ryan Scott's avatar
    3f05e5f6
    Don't suppress unimplemented type family warnings with DeriveAnyClass · 3f05e5f6
    Ryan Scott authored
    Summary:
    For some asinine reason, we were suppressing warnings when
    deriving associated type family instances with `DeriveAnyClass`. That seems
    like a bad idea. Let's not do that.
    
    Along the way, I noticed that the error contexts associated with these
    newly emitted warnings were less than ideal, so I did some minor refactoring
    to improve the story there.
    
    Fixes #14094
    
    Test Plan: ./validate
    
    Reviewers: bgamari, austin
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #14094
    
    Differential Revision: https://phabricator.haskell.org/D3828
    3f05e5f6
    History
    Don't suppress unimplemented type family warnings with DeriveAnyClass
    Ryan Scott authored
    Summary:
    For some asinine reason, we were suppressing warnings when
    deriving associated type family instances with `DeriveAnyClass`. That seems
    like a bad idea. Let's not do that.
    
    Along the way, I noticed that the error contexts associated with these
    newly emitted warnings were less than ideal, so I did some minor refactoring
    to improve the story there.
    
    Fixes #14094
    
    Test Plan: ./validate
    
    Reviewers: bgamari, austin
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #14094
    
    Differential Revision: https://phabricator.haskell.org/D3828
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
T10598_fail3.stderr 174 B

T10598_fail3.hs:8:36: error:
    • Generic instances can only be derived in Safe Haskell using the stock strategy.
    • In the instance declaration for ‘Generic T’