ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.CompactSpec

Description

Compact specifications retain the original zlib bytes after data-only schema checks.

Synopsis

Documentation

data CompactSpec Source #

The compressed bytes and parsed facts refer to the same fully consumed stream.

decodeGemSpecification :: Limits -> ByteString -> Either ParseError GemSpecification Source #

Parse the native Marshal wrapper and its bounded nested Marshal payload.

decodeCompactSpec :: Limits -> (Int -> IO ()) -> ByteString -> IO (Either ParseError CompactSpec) Source #

Inflate one bounded zlib stream and preserve its exact original representation.

validateCompactSpec :: Limits -> (Int -> IO ()) -> GemCoordinate -> GemRow -> ByteString -> IO (Either ParseError CompactSpec) Source #

Bind selected source bytes to the admitted physical coordinate and native installation facts.

checkGemSpecification :: GemCoordinate -> GemRow -> GemSpecification -> Either ParseError GemSpecification Source #

Bind native archive or compact facts to the selected source coordinate and installation metadata.

specificationCoordinate :: GemSpecification -> Either ParseError GemCoordinate Source #

Build the checked physical artifact coordinate from native specification facts.