Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for recover-rtti

## 0.5.2 -- 2025-12-16

* Support `unordered-containers-0.2.21` (Brandon Chinn, #45)

## 0.5.1 -- 2025-07-19

* Relax bounds, including support for `QuickCheck-2.16`
Expand Down
2 changes: 1 addition & 1 deletion recover-rtti.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: recover-rtti
version: 0.5.1
version: 0.5.2
synopsis: Recover run-time type information from the GHC heap
description: The main function in this package is 'classify', which looks
at the GHC heap to recover type information about arbitrary
Expand Down
6 changes: 5 additions & 1 deletion src/Debug/RecoverRTTI/Classify.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}

Expand Down Expand Up @@ -358,7 +360,9 @@ classifyHMArray =
classifyArrayLike
C_HM_Array
HashMap.Array.length
(`HashMap.Array.index` 0)
hmHead
where
hmHead a = case HashMap.Array.index# a 0 of (# x #) -> x

classifyPrimArray ::
Prim.Array a
Expand Down