[Haskell-cafe] ANN: `dump-core` a prettier GHC core viewer

Ben Gamari ben at smart-cactus.org
Thu Jan 12 18:51:16 UTC 2017

On January 12, 2017 1:36:12 PM EST, Iavor Diatchki <iavor.diatchki at gmail.com> wrote:
>Over the holidays I wrote a small GHC plugin to help me do some
>optimizations of Haskell code.  I thought it might be of use to other
>people too, so please try it out!
>When enabled, the plugin will save the Core generated by GHC in JSON
>format, and also render it in HTML for human inspection.
>The plugin is available on Hackage:
>The instructions on how to use it are in the README file.
>You may also read about it at the github page:
>There are many things that could probably be improved, just let me
>Also, if you are good at design, I could use some help making things
>prettier :)
>Happy hacking,
>Haskell-Cafe mailing list
>To (un)subscribe, modify options or view archives go to:
>Only members subscribed via the mailman list are allowed to post.

This looks fantastic,  Iavor. I have often wanted something like this.  It would be nice if the package would also expose a library providing the types along with FromJson instances so one can load a dump into ghci for further inspection.

I've also long wanted a tool to easily fuzzily compare pairs of core dumps. This could be a great tool for enabling this.


- Ben 

More information about the Haskell-Cafe mailing list