Mention DerivingStrategies in the warning when DAC and GND are both enabled
Summary: When DeriveAnyClass and GeneralizedNewtypeDeriving are both enabled, GHC prints out a warning that specifies the strategy it used to derive a class. This patch updates the warning to mention that users may pick a particular strategy by using DerivingStrategies. Test plan: make test TEST=T16179
Showing
- compiler/typecheck/TcDeriv.hs 4 additions, 1 deletioncompiler/typecheck/TcDeriv.hs
- testsuite/tests/deriving/should_compile/T16179.hs 7 additions, 0 deletionstestsuite/tests/deriving/should_compile/T16179.hs
- testsuite/tests/deriving/should_compile/T16179.stderr 5 additions, 0 deletionstestsuite/tests/deriving/should_compile/T16179.stderr
- testsuite/tests/deriving/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/deriving/should_compile/all.T
Loading
Please register or sign in to comment