Add hook for splicing in renamer
authorEdsko de Vries <edsko@well-typed.com>
Tue, 17 Dec 2013 17:28:44 +0000 (17:28 +0000)
committerEdsko de Vries <edsko@well-typed.com>
Fri, 27 Dec 2013 11:34:28 +0000 (11:34 +0000)
commitdf2dd64dca0796f01356f5fb2ec41edf9762c349
tree7779c66d890ee2655d45fd1ab8e7d888bb7996bf
parente4afeedc5b8ac0f48cbeac09aa702c8d10433cdb
Add hook for splicing in renamer

With the recent modifications to the TH infrastructure, many splices are now
expanded in the renamer rather than the typechecker. This means that tools
which inspect the renamed tree don't get to see the original splices. Added a
new hook which gets called before such a splice gets expanded, analogous to the
runQuasiQuoteHook.
compiler/main/Hooks.lhs
compiler/rename/RnSplice.lhs