Commit c96887cf authored by Iustin Pop's avatar Iustin Pop
Browse files

Explain how to use GHCI to see spliced TH code

This can be more useful than the "make" version.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent daa49d6f
......@@ -130,6 +130,14 @@ what the splices are converted to. This can be done via::
$ make HEXTRA="-ddump-splices"
Or, more interactively::
$ ghci
λ> :set -ddump-splices
λ> :l htools/Ganeti/Objects.hs
And you will get the spliced code as the module is loaded.
To build profiling code you must install the ``ghc-prof`` (or
``gch6-prof``) package, and all the relevant libraries with their
``-prof`` counterparts. If installing libraries through cabal the config
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment