[commit: ghc] master: add runMeta hook (e7eef00)

git at git.haskell.org git at git.haskell.org
Sat Dec 20 21:09:56 UTC 2014


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

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

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

commit e7eef005c1743d5fdc1162d717e98b304cd9fc5e
Author: Luite Stegeman <stegeman at gmail.com>
Date:   Fri Dec 19 18:28:17 2014 -0600

    add runMeta hook
    
    Summary:
    The runMeta hook can be used to override how metaprogramming expressions
    are evaluated. It makes the metaprogramming request types explicit and
    has access to the TcM monad. This makes it a much more convenient starting
    point for implementing out of process Template Haskell than the existing
    hscCompileCoreExpr hook.
    
    Reviewers: hvr, edsko, austin, simonpj
    
    Reviewed By: austin
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D501


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

e7eef005c1743d5fdc1162d717e98b304cd9fc5e
 compiler/main/Hooks.hs         |   3 +
 compiler/main/HscTypes.hs      |  48 ++++++++++++++++
 compiler/typecheck/TcSplice.hs | 123 +++++++++++++++++++++--------------------
 3 files changed, 114 insertions(+), 60 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 e7eef005c1743d5fdc1162d717e98b304cd9fc5e


More information about the ghc-commits mailing list