@hackage ghc-compact0.1.0.0
In memory storage of deeply evaluated data structure
Categories
License
BSD-3-Clause
Maintainer
libraries@haskell.org
Links
Versions
- 0.1.0.0 Mon, 19 May 2025
Installation
Dependencies (3)
- base >=4.9.0 && <4.22
- bytestring >=0.10.6.0 && <0.13
- ghc-prim >=0.5.3 && <0.14 Show all…
Dependents (12)
@hackage/compact, @hackage/Agda, @hackage/ghc-instances, @hackage/talash, @hackage/glean, @hackage/radixtree, Show all…
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.