summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv-functor2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv-functor2.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv-functor2.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv-functor2.hs b/testsuite/tests/deriving/should_compile/drv-functor2.hs
new file mode 100644
index 0000000000..d070feb06d
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv-functor2.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE GeneralizedNewtypeDeriving #-}
+
+module ShouldCompile where
+
+-- Deriving Functor should still work with GeneralizedNewtypeDeriving instead of DeriveFunctor
+
+newtype List a = List [a]
+ deriving (Functor)
+