| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Npm.VersionWriter
Contents
Description
npm policy facts collected beside the existing packed writer. The walk still owns shapes, depth checks and first-member handling. Only the three install hooks retain script names, and no command survives in typed facts. A dependency spec is classified where it is read, and only an external one is kept.
Synopsis
- data VersionWriter st
- newVersionWriter :: Maybe (Entry, Entry) -> ST st (VersionWriter st)
- packedWriter :: VersionWriter st -> Writer st
- sealVersion :: VersionWriter st -> [Text] -> ST st Packed
- discardVersion :: VersionWriter st -> ST st ()
- data VersionValue
- versionFacts :: VersionValue -> Maybe VersionManifest
Packing
data VersionWriter st Source #
One read's packed storage and the role of the next value.
Instances
newVersionWriter :: Maybe (Entry, Entry) -> ST st (VersionWriter st) Source #
The optional replacement member follows newWriter, including original-author diagnostics.
packedWriter :: VersionWriter st -> Writer st Source #
The existing diagnostic decoder reads this writer's sealed values.
sealVersion :: VersionWriter st -> [Text] -> ST st Packed Source #
Seal with the existing codec and reset the observer for the next release.
discardVersion :: VersionWriter st -> ST st () Source #
Discard both the packed scratch and the next value's observed role.
Typed facts
data VersionValue Source #
A completed value. Invalid facts require the existing whole-release diagnostic decoder.
versionFacts :: VersionValue -> Maybe VersionManifest Source #
Successful facts retain only hook presence in vmScripts, represented by empty commands.