diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/deriving/should_compile/T14682.stderr | 8 | ||||
-rw-r--r-- | testsuite/tests/quotes/T20688.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/quotes/all.T | 1 |
3 files changed, 14 insertions, 2 deletions
diff --git a/testsuite/tests/deriving/should_compile/T14682.stderr b/testsuite/tests/deriving/should_compile/T14682.stderr index 1d84be7b50..632af19788 100644 --- a/testsuite/tests/deriving/should_compile/T14682.stderr +++ b/testsuite/tests/deriving/should_compile/T14682.stderr @@ -13,11 +13,15 @@ Derived class instances: instance Language.Haskell.TH.Syntax.Lift T14682.Foo where Language.Haskell.TH.Syntax.lift (T14682.Foo a1 a2) - = [| T14682.Foo a1 a2 |] + = [| T14682.Foo + $(Language.Haskell.TH.Syntax.lift a1) + $(Language.Haskell.TH.Syntax.lift a2) |] pending(rn) [<a2, Language.Haskell.TH.Syntax.lift a2>, <a1, Language.Haskell.TH.Syntax.lift a1>] Language.Haskell.TH.Syntax.liftTyped (T14682.Foo a1 a2) - = [|| T14682.Foo a1 a2 ||] + = [|| T14682.Foo + $$(Language.Haskell.TH.Syntax.liftTyped a1) + $$(Language.Haskell.TH.Syntax.liftTyped a2) ||] instance Data.Data.Data T14682.Foo where Data.Data.gfoldl k z (T14682.Foo a1 a2) diff --git a/testsuite/tests/quotes/T20688.hs b/testsuite/tests/quotes/T20688.hs new file mode 100644 index 0000000000..53d859c4e8 --- /dev/null +++ b/testsuite/tests/quotes/T20688.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE DeriveLift #-} +module T20688 where + +import Language.Haskell.TH.Syntax + +data Foo = Foo Int Bool + deriving (Lift, Show) diff --git a/testsuite/tests/quotes/all.T b/testsuite/tests/quotes/all.T index 68a13ca5ab..e441811111 100644 --- a/testsuite/tests/quotes/all.T +++ b/testsuite/tests/quotes/all.T @@ -38,3 +38,4 @@ test('TH_nested_splice', normal, compile, ['']) test('TH_top_splice', normal, compile_fail, ['']) test('TTH_top_splice', normal, compile_fail, ['']) test('TH_double_splice', normal, compile_fail, ['']) +test('T20688', normal, compile, ['-Wimplicit-lift -Werror']) |