diff options
author | RyanGlScott <ryan.gl.scott@gmail.com> | 2015-09-21 21:50:55 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-09-21 21:50:56 -0500 |
commit | 089b72f524a6a7564346baca9595fcd07081ec40 (patch) | |
tree | 2354366bd18fe44ddbcbe4953e172f345a374b66 /testsuite/tests/deriving/should_compile | |
parent | d4d34a73aacc225a8f28d7138137bf548c9e51cc (diff) | |
download | haskell-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.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_compile/all.T | 1 |
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']) |