[commit: ghc] master: Support adding objects from TH (ceb9147)

git at git.haskell.org git at git.haskell.org
Sun Mar 25 19:02:18 UTC 2018


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

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

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

commit ceb914771aece0aa6d87339227ce406c7179d1d1
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Sun Mar 25 13:59:27 2018 -0400

    Support adding objects from TH
    
    The user facing TH interface changes are:
    
      * 'addForeignFile' is renamed to 'addForeignSource'
      * 'qAddForeignFile'/'addForeignFile' now expect 'FilePath's
      * 'RawObject' is now a constructor for 'ForeignSrcLang'
      * 'qAddTempFile'/'addTempFile' let you request a temporary file
        from the compiler.
    
    Test Plan: unsure about this, added a TH test
    
    Reviewers: goldfire, bgamari, angerman
    
    Reviewed By: bgamari, angerman
    
    Subscribers: hsyl20, mboes, carter, simonmar, bitonic, ljli, rwbarton, thomie
    
    GHC Trac Issues: #14298
    
    Differential Revision: https://phabricator.haskell.org/D4217


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

ceb914771aece0aa6d87339227ce406c7179d1d1
 compiler/main/CodeOutput.hs                        | 20 +---------
 compiler/main/DriverPipeline.hs                    |  2 +
 compiler/main/HscTypes.hs                          |  4 +-
 compiler/typecheck/TcRnTypes.hs                    |  2 +-
 compiler/typecheck/TcSplice.hs                     | 12 ++++--
 libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs   |  2 +-
 libraries/ghci/GHCi/Message.hs                     | 39 +++++++++---------
 libraries/ghci/GHCi/TH.hs                          |  3 +-
 .../template-haskell/Language/Haskell/TH/Syntax.hs | 46 +++++++++++++++++++---
 testsuite/tests/th/T13366.hs                       |  4 +-
 testsuite/tests/th/T14298.hs                       | 24 +++++++++++
 testsuite/tests/th/T14298.stdout                   |  2 +
 testsuite/tests/th/all.T                           |  1 +
 13 files changed, 109 insertions(+), 52 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 ceb914771aece0aa6d87339227ce406c7179d1d1


More information about the ghc-commits mailing list