nomeata / ghc-heap-view

Extract the heap representation of Haskell values and thunks
BSD 3-Clause "New" or "Revised" License
50 stars 19 forks source link

Support GHC-{9.0.1, 9.2.1} #36

Closed TeofilC closed 2 years ago

TeofilC commented 3 years ago

This adds support for GHC 9.01. and 9.2.1.

A small change needed to be made to the test suite to avoid the newer GHCs inlining a function and changing the shape of the thunk.

Some modules from bytestring had been removed in the package bundled with 9.2.1.

Instead of adding CPP, I've changed the imports to refer to the new names of the modules, which have been around since bytestring-0.10.2. Given that the earliest GHC in the tested-with field in the cabal file is 8.6.1, which comes bundled with a latter bytestring, afaik this won't break backwards compat with any supported compiler.

Fixes #35

nomeata commented 3 years ago

Thanks a lot! I am currently traveling without a laptop, so making a release is not easy. Ok to wait for a few weeks? Alternatively, anyone interested in becoming comaintainer?

Anton-Latukha commented 2 years ago

I do not have anything near proficiency for it.

def- commented 2 years ago

I am currently traveling without a laptop, so making a release is not easy. Ok to wait for a few weeks? Alternatively, anyone interested in becoming comaintainer?

I could release it if that's ok.

nomeata commented 2 years ago

Definitely!

Anton-Latukha commented 2 years ago

Thank you greatly.

def- commented 2 years ago

Definitely!

Could you add me in https://hackage.haskell.org/package/ghc-heap-view/maintainers/ ? Then I can upload the new version.

nomeata commented 2 years ago

Done!