Skip to content
Snippets Groups Projects
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 <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent daa49d6f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment