Modules§
Structs§
Constants§
- CACHE_
FORMAT_ VERSION - Current cache format version. Bump this when making breaking changes to the cache format.
- COMPILER_
VERSION_ HASH - Compiler version hash. Caches from different compiler versions are invalid.
- GO_
STDLIB_ HASH - Go stdlib-only content hash (typedefs/*.d.lis).
- PRELUDE_
HASH - Prelude-only content hash (prelude.d.lis).
- STDLIB_
HASH - Combined stdlib content hash. Changes to any stdlib file (prelude.d.lis or any typedefs/*.d.lis) will change this hash, invalidating all user module caches.
Functions§
- cache_
path - compute_
module_ hash - Compute a module’s hash from its source hash and dependency hashes. This ensures transitive invalidation: if C changes, B’s module_hash changes (even though B’s source didn’t), which invalidates A’s cache.
- get_
dependency_ module_ hashes - hash_
module_ sources - is_
cache_ disabled - is_
cache_ valid - register_
cached_ module - Register a cached module in the store. This loads the cached definitions and source files without running inference.
- save_
module_ cache - try_
load_ cache