| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Wire
Description
Strict native index records retain additive fields and distinguish null from absence.
Synopsis
- data CargoRecordError
- decodeCargoRecord :: Int -> ByteString -> Either CargoRecordError Value
- validateCargoRecord :: Value -> Either Text ()
- recordIdentity :: Value -> Maybe Text
- cargoTreeCharge :: Integer -> Int
Documentation
data CargoRecordError Source #
Malformed rows drop individually. Resource refusals stop the whole source read.
Constructors
| CargoRecordMalformed Text | |
| CargoRecordBound LimitError |
Instances
| Show CargoRecordError Source # | |
Defined in Ecluse.Core.Registry.Cargo.Wire Methods showsPrec :: Int -> CargoRecordError -> ShowS # show :: CargoRecordError -> String # showList :: [CargoRecordError] -> ShowS # | |
| Eq CargoRecordError Source # | |
Defined in Ecluse.Core.Registry.Cargo.Wire Methods (==) :: CargoRecordError -> CargoRecordError -> Bool # (/=) :: CargoRecordError -> CargoRecordError -> Bool # | |
decodeCargoRecord :: Int -> ByteString -> Either CargoRecordError Value Source #
Decode exactly one bounded object and reject duplicate member names at every depth.
validateCargoRecord :: Value -> Either Text () Source #
Validate supported installation schema without interpreting Cargo's resolver expressions.
recordIdentity :: Value -> Maybe Text Source #
A syntactically native version claims uniqueness even when another record field is invalid.
cargoTreeCharge :: Integer -> Int Source #
Reserve bounded native parser trees and comparison structures before retaining them.