| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.PyPI.FileWriter
Description
Pack supported file members while reducing their typed facts. Only diagnostics decode a file again.
Synopsis
- data FileWriter st
- fileWriter :: Writer st -> ST st (FileWriter st)
- data FileValue
Documentation
data FileWriter st Source #
A writer with the object depth that tells file fields from digest members, and the open file's facts.
Instances
fileWriter :: Writer st -> ST st (FileWriter st) Source #
Attach typed reduction to a read's existing scratch writer.
Completed facts keep no error tree after a failed typed decode.
Constructors
| TextValue Text | Text already decoded by the walk. |
| IntegerValue Int | An integer the walk already represents as |
| ScalarValue Value | Other scalars and the empty-array container fallback. |
| HashValue (Maybe (Map Text Text)) | Digest text by algorithm, or a failed digest value. |
| FileValue (Maybe IndexFile) | A decoded file, or a failure whose diagnostic needs the packed payload. |