ghc-heap-view 0.6.1 → 0.6.2
raw patch · 2 files changed
+12/−4 lines, 2 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- ghc-heap-view.cabal +4/−4
- src/GHC/HeapView.hs +8/−0
ghc-heap-view.cabal view
@@ -1,5 +1,5 @@ Name: ghc-heap-view-Version: 0.6.1+Version: 0.6.2 Synopsis: Extract the heap representation of Haskell values and thunks Description: This library provides functions to introspect the Haskell heap, for example@@ -41,7 +41,7 @@ . The work on this package has been supported by the Deutsche Telekom Stiftung (<http://telekom-stiftung.de>).-tested-with: GHC == 8.6.1, GHC == 8.6.2, GHC == 8.6.3, GHC == 8.6.4, GHC == 8.6.5, GHC == 8.8.1+tested-with: GHC == 8.6.1, GHC == 8.6.2, GHC == 8.6.3, GHC == 8.6.4, GHC == 8.6.5, GHC == 8.8.1, GHC == 8.10.1 License: BSD3 License-file: LICENSE Author: Joachim Breitner, Dennis Felsing@@ -61,7 +61,7 @@ custom-setup setup-depends: base setup-depends: filepath- setup-depends: Cabal >= 1.24 && < 3.2+ setup-depends: Cabal >= 1.24 && < 3.3 Library Default-Language: Haskell2010@@ -71,7 +71,7 @@ GHC.Disassembler GHC.HeapView.Debug Build-depends:- base >= 4.12 && < 4.14,+ base >= 4.12 && < 4.15, ghc-heap, containers, transformers,
src/GHC/HeapView.hs view
@@ -254,6 +254,14 @@ "_other" UnsupportedClosure {..} -> "_unsupported"+#if MIN_VERSION_ghc_heap(8,10,1)+ -- copy-pasta'd from MutArrClosure:+ SmallMutArrClosure {..} -> app+ --["toMutArray", "("++show (length mccPayload) ++ " ptrs)", intercalate "," (shorten (map (showBox 10) mccPayload))]+ ["[", intercalate ", " (shorten (map (showBox 10) mccPayload)),"]"]+ WeakClosure {..} ->+ "_weak"+#endif where app [a] = a ++ "()" app xs = addBraces (10 <= prec) (intercalate " " xs)