Add -Wderiving-defaults (#15839)
Enabling both DeriveAnyClass and GeneralizedNewtypeDeriving can cause a warning when no explicit deriving strategy is in use. This change adds an enable/suppress flag for it.
Showing
- compiler/main/DynFlags.hs 3 additions, 0 deletionscompiler/main/DynFlags.hs
- compiler/typecheck/TcDeriv.hs 2 additions, 1 deletioncompiler/typecheck/TcDeriv.hs
- docs/users_guide/8.10.1-notes.rst 10 additions, 0 deletionsdocs/users_guide/8.10.1-notes.rst
- docs/users_guide/using-warnings.rst 18 additions, 0 deletionsdocs/users_guide/using-warnings.rst
- testsuite/tests/deriving/should_compile/T16179.stderr 4 additions, 3 deletionstestsuite/tests/deriving/should_compile/T16179.stderr
- testsuite/tests/typecheck/should_compile/T15839a.hs 6 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T15839a.hs
- testsuite/tests/typecheck/should_compile/T15839a.stderr 6 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T15839a.stderr
- testsuite/tests/typecheck/should_compile/T15839b.hs 8 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T15839b.hs
- testsuite/tests/typecheck/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Please register or sign in to comment