ghc-compact

In memory storage of deeply evaluated data structure

LTS Haskell 22.43:0.1.0.0@rev:5
Stackage Nightly 2024-11-24:0.1.0.0
Latest on Hackage:0.1.0.0@rev:5

See all snapshots ghc-compact appears in

BSD-3-Clause licensed
Maintained by [email protected]
This version can be pinned in stack with:ghc-compact-0.1.0.0@sha256:b44501893933b72938210b8c48637adc649da7dea224be06c187056edd5e3238,1734

Module documentation for 0.1.0.0

Used by 4 packages in lts-22.43(full list with versions):

This package provides minimal functionality for working with "compact regions", which hold a fully evaluated Haskell object graph. These regions maintain the invariant that no pointers live inside the struct that point outside it, which ensures efficient garbage collection without ever reading the structure contents (effectively, it works as a manually managed "oldest generation" which is never freed until the whole is released). Internally, the struct is stored a single contiguous block of memory, which allows efficient serialization and deserialization of structs for distributed computing. This package provides a low-level API; see also the <packagecompact compact package> which provides a user-facing API.