summaryrefslogtreecommitdiff
path: root/compiler/main/Hooks.lhs-boot
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2013-09-22 18:47:35 -0500
committerAustin Seipp <austin@well-typed.com>2013-09-22 18:47:38 -0500
commit6f799899aa7cd9c59c9ebf9c9709f9423d93d307 (patch)
treebed11393db25e594d9525471a01c69dd98a9b355 /compiler/main/Hooks.lhs-boot
parentea2af9b21d6e772e3adc8806044557b504b84795 (diff)
downloadhaskell-6f799899aa7cd9c59c9ebf9c9709f9423d93d307.tar.gz
Restructure compilation pipeline to allow hooks
This commit exposes GHC's internal compiler pipeline through a `Hooks` module in the GHC API. It currently allows you to hook: * Foreign import/exports declarations * The frontend up to type checking * The one shot compilation mode * Core compilation, and the module iface * Linking and the phases in DriverPhases.hs * Quasiquotation Authored-by: Luite Stegeman <stegeman@gmail.com> Authored-by: Edsko de Vries <edsko@well-typed.com> Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'compiler/main/Hooks.lhs-boot')
-rw-r--r--compiler/main/Hooks.lhs-boot9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/main/Hooks.lhs-boot b/compiler/main/Hooks.lhs-boot
new file mode 100644
index 0000000000..71b7bf2a7d
--- /dev/null
+++ b/compiler/main/Hooks.lhs-boot
@@ -0,0 +1,9 @@
+\begin{code}
+module Hooks where
+
+data Hooks
+
+emptyHooks :: Hooks
+
+\end{code}
+