Long lived application data typically should not contain any thunks. This
library can be used to examine values for unexpected thunks, which can then be
used in assertions. This can be invaluable in avoiding memory leaks, or tracking
down existing ones.
nothunks will try to get source information from info tables. For that one
needs to use GHC9.2 or newer and compile the code with
-finfo-table-map. More precise information will be available if
-fdistinct-constructor-tables flag is used as well.
Changes
Revision history for nothunks
0.3.0 – 2024-08-13
Include bothContextandInfo in ThunkInfo (#54)
0.2.1.0 – 2024-02-06
Exported mkThunkInfo.
Test support of ghc-9.10.
0.2.1.0 – 2024-02-06
Support wherefrom with GHC-9.2 or newer. (Teo Camarasu, #49)
0.2.0 – 2024-01-27
Use whereFrom to get source information, which is avialable when the source
is compiled with GHC-9.6 (or newer) and with -finfo-table-map (and even
more accurate when -fdistinct-constructor-table is passed).
For that reason the ThunkInfo type has changed.
NoThunks instance for Data.Tuple.Solo.
NoThunks instances for Data.Semigroup and Data.Monoid newtype wrappers.