diff options
author | Chaitanya Koparkar <ckoparkar@gmail.com> | 2019-01-14 14:36:29 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-01-20 05:24:59 -0500 |
commit | 800d77e882f24066a7f6d818b2606ad8a0e79e02 (patch) | |
tree | 6e7d9b4673499c1cb29214641571f27e8c32a2e8 /testsuite/tests/deriving/should_compile/T16179.hs | |
parent | b137ab75ab269e043e0783e41ac704d1be5570c6 (diff) | |
download | haskell-800d77e882f24066a7f6d818b2606ad8a0e79e02.tar.gz |
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
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T16179.hs')
-rw-r--r-- | testsuite/tests/deriving/should_compile/T16179.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T16179.hs b/testsuite/tests/deriving/should_compile/T16179.hs new file mode 100644 index 0000000000..5873f8913e --- /dev/null +++ b/testsuite/tests/deriving/should_compile/T16179.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE DeriveAnyClass #-} +{-# LANGUAGE GeneralizedNewtypeDeriving #-} + +module T16179 where + +class C a +newtype T a = MkT a deriving C |