ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Cargo.Wire

Description

Strict native index records retain additive fields and distinguish null from absence.

Synopsis

Documentation

data CargoRecordError Source #

Malformed rows drop individually. Resource refusals stop the whole source read.

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.