summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile
diff options
context:
space:
mode:
authorRyanGlScott <ryan.gl.scott@gmail.com>2015-09-21 21:50:55 -0500
committerAustin Seipp <austin@well-typed.com>2015-09-21 21:50:56 -0500
commit089b72f524a6a7564346baca9595fcd07081ec40 (patch)
tree2354366bd18fe44ddbcbe4953e172f345a374b66 /testsuite/tests/deriving/should_compile
parentd4d34a73aacc225a8f28d7138137bf548c9e51cc (diff)
downloadhaskell-089b72f524a6a7564346baca9595fcd07081ec40.tar.gz
DeriveLift extension (#1830)
Summary: This implements -XDeriveLift, which allows for automatic derivation of the Lift class from template-haskell. The implementation is based off of Ian Lynagh's th-lift library (http://hackage.haskell.org/package/th-lift). Test Plan: ./validate Reviewers: hvr, simonpj, bgamari, goldfire, austin Reviewed By: goldfire, austin Subscribers: osa1, thomie Differential Revision: https://phabricator.haskell.org/D1168 GHC Trac Issues: #1830
Diffstat (limited to 'testsuite/tests/deriving/should_compile')
-rw-r--r--testsuite/tests/deriving/should_compile/T1830.hs6
-rw-r--r--testsuite/tests/deriving/should_compile/all.T1
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T1830.hs b/testsuite/tests/deriving/should_compile/T1830.hs
new file mode 100644
index 0000000000..edaff7b546
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T1830.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE DeriveLift #-}
+module T1830 where
+
+import Language.Haskell.TH.Syntax (Lift)
+
+data Nothing deriving Lift
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T
index a01a5149b2..ec81cc3c05 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -16,6 +16,7 @@ test('drv015', normal, compile, [''])
test('drv020', normal, compile, [''])
test('drv022', normal, compile, [''])
test('deriving-1935', normal, compile, [''])
+test('T1830', normal, compile, [''])
test('T2378', normal, compile, [''])
test('T2856', normal, compile, [''])
test('T3057', extra_clean(['T3057A.o', 'T3057A.hi']), multimod_compile, ['T3057', '-v0'])