[commit: ghc] master: Add support for LINE pragma in template-haskell (adcb9db)

git at git.haskell.org git at git.haskell.org
Tue Oct 7 13:53:00 UTC 2014


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

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

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

commit adcb9dbc0bfb6a7dd3f4f746e2f8cd620745db75
Author: Eric Mertens <emertens at gmail.com>
Date:   Tue Oct 7 08:48:37 2014 -0500

    Add support for LINE pragma in template-haskell
    
    Summary:
    Provide a way to generate {-# LINE #-} pragmas when generating
    Decs in Template Haskell. This allows more meaningful line
    numbers to be reported in compile-time errors for dynamically
    generated code.
    
    Test Plan: Run test suite
    
    Reviewers: austin, hvr
    
    Reviewed By: austin
    
    Subscribers: hvr, simonmar, ezyang, carter, thomie
    
    Differential Revision: https://phabricator.haskell.org/D299


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

adcb9dbc0bfb6a7dd3f4f746e2f8cd620745db75
 compiler/hsSyn/Convert.lhs                         | 97 +++++++++++++---------
 docs/users_guide/7.10.1-notes.xml                  |  3 +-
 docs/users_guide/glasgow_exts.xml                  |  5 ++
 libraries/template-haskell/Language/Haskell/TH.hs  |  1 +
 .../template-haskell/Language/Haskell/TH/Lib.hs    |  3 +
 .../template-haskell/Language/Haskell/TH/Ppr.hs    |  2 +
 .../template-haskell/Language/Haskell/TH/Syntax.hs |  1 +
 testsuite/tests/th/TH_linePragma.hs                | 11 +++
 testsuite/tests/th/TH_linePragma.stderr            |  2 +
 testsuite/tests/th/all.T                           |  2 +
 10 files changed, 87 insertions(+), 40 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 adcb9dbc0bfb6a7dd3f4f746e2f8cd620745db75


More information about the ghc-commits mailing list