[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:
>Hello,
>
>Over the holidays I wrote a small GHC plugin to help me do some
>low-level
>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:
>http://hackage.haskell.org/package/dump-core
>
>The instructions on how to use it are in the README file.
>You may also read about it at the github page:
>http://hackage.haskell.org/package/dump-core
>
>There are many things that could probably be improved, just let me
>know.
>Also, if you are good at design, I could use some help making things
>look
>prettier :)
>
>Happy hacking,
>-Iavor
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Haskell-Cafe mailing list
>To (un)subscribe, modify options or view archives go to:
>http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>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.

Cheers, 

- Ben 


More information about the Haskell-Cafe mailing list