DeriveLift extension (#1830)
authorRyanGlScott <ryan.gl.scott@gmail.com>
Tue, 22 Sep 2015 02:50:55 +0000 (21:50 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 22 Sep 2015 02:50:56 +0000 (21:50 -0500)
commit089b72f524a6a7564346baca9595fcd07081ec40
tree2354366bd18fe44ddbcbe4953e172f345a374b66
parentd4d34a73aacc225a8f28d7138137bf548c9e51cc
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
19 files changed:
compiler/main/DynFlags.hs
compiler/prelude/PrelNames.hs
compiler/prelude/THNames.hs
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcGenDeriv.hs
docs/users_guide/7.12.1-notes.xml
docs/users_guide/flags.xml
docs/users_guide/glasgow_exts.xml
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
testsuite/tests/deriving/should_compile/T1830.hs [new file with mode: 0644]
testsuite/tests/deriving/should_compile/all.T
testsuite/tests/deriving/should_fail/T1830.hs [new file with mode: 0644]
testsuite/tests/deriving/should_fail/T1830.stderr [new file with mode: 0644]
testsuite/tests/deriving/should_fail/all.T
testsuite/tests/driver/T4437.hs
testsuite/tests/th/T1830.hs [new file with mode: 0644]
testsuite/tests/th/T1830.stdout [new file with mode: 0644]
testsuite/tests/th/T1830a.hs [new file with mode: 0644]
testsuite/tests/th/all.T