| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.CompactSpec
Description
Compact specifications retain the original zlib bytes after data-only schema checks.
Synopsis
- data GemSpecification = GemSpecification {}
- data CompactSpec
- decodeGemSpecification :: Limits -> ByteString -> Either ParseError GemSpecification
- decodeCompactSpec :: Limits -> (Int -> IO ()) -> ByteString -> IO (Either ParseError CompactSpec)
- validateCompactSpec :: Limits -> (Int -> IO ()) -> GemCoordinate -> GemRow -> ByteString -> IO (Either ParseError CompactSpec)
- checkGemSpecification :: GemCoordinate -> GemRow -> GemSpecification -> Either ParseError GemSpecification
- compactSpecBytes :: CompactSpec -> ByteString
- compactSpecification :: CompactSpec -> GemSpecification
- specificationCoordinate :: GemSpecification -> Either ParseError GemCoordinate
Documentation
data GemSpecification Source #
Native installation facts from the supported historical and current specification layouts.
Constructors
| GemSpecification | |
Instances
| Show GemSpecification Source # | |
Defined in Ecluse.Core.Registry.RubyGems.CompactSpec Methods showsPrec :: Int -> GemSpecification -> ShowS # show :: GemSpecification -> String # showList :: [GemSpecification] -> ShowS # | |
| Eq GemSpecification Source # | |
Defined in Ecluse.Core.Registry.RubyGems.CompactSpec Methods (==) :: GemSpecification -> GemSpecification -> Bool # (/=) :: GemSpecification -> GemSpecification -> Bool # | |
data CompactSpec Source #
The compressed bytes and parsed facts refer to the same fully consumed stream.
Instances
| Show CompactSpec Source # | |
Defined in Ecluse.Core.Registry.RubyGems.CompactSpec Methods showsPrec :: Int -> CompactSpec -> ShowS # show :: CompactSpec -> String # showList :: [CompactSpec] -> ShowS # | |
| Eq CompactSpec Source # | |
Defined in Ecluse.Core.Registry.RubyGems.CompactSpec | |
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.