Mention DerivingStrategies in the warning when DeriveAnyClass and GeneralizedNewtypeDeriving are both enabled
When DeriveAnyClass and GeneralizedNewtypeDeriving are both enabled, GHC prints out the following warning for every deriving C:
warning:
• Both DeriveAnyClass and GeneralizedNewtypeDeriving are enabled
Defaulting to the DeriveAnyClass strategy for instantiating C
Would it be useful to point the users to DerivingStrategies ?
Use DerivingStrategies to pick a different strategy, or something similar? I'm not sure if this was already discussed before, I couldn't find any related tickets.
Trac metadata
| Trac field | Value |
|---|---|
| Version | |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | RyanGlScott |
| Operating system | |
| Architecture |