Skip to content

Add 'dumpAction' and 'traceAction' hooks

Sylvain Henry requested to merge hsyl20/ghc:hsyl20-dumpAction-traceAction into master
  • add 2 hooks into DynFlags (dumpAction and traceAction) that can be used with GHC API to capture dumped messages with intermediate representations and traces
  • the default implementations of these hooks keep the current behavior
  • replace dumpSDoc with a call to dumpAction
  • add dump type argument ("Core", "STG", "Text", etc.) useful for syntax highlighting
  • fix some traces that were always displayed on stdout even with -ddump-to-file
Edited by Sylvain Henry

Merge request reports