Re: How to use ghc-heap-view of ghc-8.6

2018-07-06 Thread Patrick Dougherty
Hello, This effort mostly just brought the core of this [1] library into GHC. The main function you will want to try is `getClosureData`,which takes any value and returns the heap representation. There are some tricky aspects about evaluation, but I will refer you to the comments about `Box`s

Re: Unable to build on NixOS

2018-05-29 Thread Patrick Dougherty
it is used with PROFILING. It uses CPP to "peek" into the StgInfoTable, which changes under profiling. My impression is that dependency resolution decides that module isn't necessary, so then it is missing when it goes to use it. Again, I am not sure here, that's just what seemed to be the i

Re: Building the docs, again

2017-11-01 Thread Patrick Dougherty
I spent some time with the docs this summer, and wrote a fair bit of the Hadrian documentation building code. So maybe I can shed some light. The question is which docs do you want to build? The library documentation relies on the haddock executable, which is one of the last targets in the