[commit: ghc] master: DeriveLift extension (#1830) (089b72f)

git at git.haskell.org git at git.haskell.org
Tue Sep 22 02:49:21 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/089b72f524a6a7564346baca9595fcd07081ec40/ghc

>---------------------------------------------------------------

commit 089b72f524a6a7564346baca9595fcd07081ec40
Author: RyanGlScott <ryan.gl.scott at gmail.com>
Date:   Mon Sep 21 21:50:55 2015 -0500

    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


>---------------------------------------------------------------

089b72f524a6a7564346baca9595fcd07081ec40
 compiler/main/DynFlags.hs                          |   2 +
 compiler/prelude/PrelNames.hs                      |   9 ++
 compiler/prelude/THNames.hs                        |  49 ++++++-
 compiler/typecheck/TcDeriv.hs                      |  13 +-
 compiler/typecheck/TcGenDeriv.hs                   | 127 +++++++++++++++++-
 docs/users_guide/7.12.1-notes.xml                  |   7 +
 docs/users_guide/flags.xml                         |   6 +
 docs/users_guide/glasgow_exts.xml                  | 149 +++++++++++++++++++++
 .../template-haskell/Language/Haskell/TH/Syntax.hs |  23 ++++
 testsuite/tests/deriving/should_compile/T1830.hs   |   6 +
 testsuite/tests/deriving/should_compile/all.T      |   1 +
 testsuite/tests/deriving/should_fail/T1830.hs      |   5 +
 testsuite/tests/deriving/should_fail/T1830.stderr  |   5 +
 testsuite/tests/deriving/should_fail/all.T         |   1 +
 testsuite/tests/driver/T4437.hs                    |   3 +-
 testsuite/tests/th/T1830.hs                        |  15 +++
 .../DsStrictData.stdout => th/T1830.stdout}        |   1 -
 testsuite/tests/th/T1830a.hs                       |  47 +++++++
 testsuite/tests/th/all.T                           |   4 +
 19 files changed, 462 insertions(+), 11 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 089b72f524a6a7564346baca9595fcd07081ec40


More information about the ghc-commits mailing list