This change is based on the ongoing OutOfProcessTemplateHaskell work put in place against 7.8 by luite/angerman and it enables hooks to be installed using the standard Plugin infrastructure (-fplugin=...) making it quite easy to experiment.
I would like to propose this change for 7.10 and a subsequent revision of the design for 7.12.