[commit: ghc] master: Implement addCStub in template-haskell. (b9bebd8)

git at git.haskell.org git at git.haskell.org
Thu Feb 9 11:12:11 UTC 2017


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

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

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

commit b9bebd8cedccd7e8dd6df89b5504cd8f1e7a675b
Author: Facundo Domínguez <facundo.dominguez at tweag.io>
Date:   Tue Feb 7 18:55:34 2017 -0300

    Implement addCStub in template-haskell.
    
    Summary:
    addCStub allows injecting C code in the current module to be included
    in the final object file.
    
    Test Plan: ./validate
    
    Reviewers: simonpj, goldfire, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: bitonic, duncan, mboes, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3106


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

b9bebd8cedccd7e8dd6df89b5504cd8f1e7a675b
 compiler/deSugar/Desugar.hs                        |  6 +++++-
 compiler/typecheck/TcRnMonad.hs                    |  2 ++
 compiler/typecheck/TcRnTypes.hs                    |  3 +++
 compiler/typecheck/TcSplice.hs                     | 12 +++++++++++
 libraries/ghci/GHCi/Message.hs                     |  5 ++++-
 libraries/ghci/GHCi/TH.hs                          |  1 +
 .../template-haskell/Language/Haskell/TH/Syntax.hs | 23 ++++++++++++++++++++++
 testsuite/tests/th/TH_addCStub1.hs                 | 22 +++++++++++++++++++++
 testsuite/tests/th/TH_addCStub1.stdout             |  2 ++
 testsuite/tests/th/TH_addCStub2.hs                 | 22 +++++++++++++++++++++
 testsuite/tests/th/TH_addCStub2.stderr             |  6 ++++++
 testsuite/tests/th/all.T                           |  3 +++
 12 files changed, 105 insertions(+), 2 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 b9bebd8cedccd7e8dd6df89b5504cd8f1e7a675b


More information about the ghc-commits mailing list