| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Wire
Description
Compact-index rows retain native requirements and reject ambiguous artifact metadata.
Synopsis
- data GemRowError
- decodeInfoRow :: PackageName -> EntryKey -> ByteString -> Either GemRowError GemRow
- infoRowIdentity :: PackageName -> ByteString -> Maybe GemCoordinate
- infoRowVersion :: ByteString -> Maybe Version
- parseGemRequirement :: Text -> Either GemRowError GemRequirement
Documentation
data GemRowError Source #
Native syntax failure differs from an explicitly unsupported wire representation.
Constructors
| GemRowMalformed Text | A required field or its grammar is invalid. |
| GemRowUnsupported Text | The row describes a newer artifact format outside the supported client contract. |
Instances
| Show GemRowError Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Wire Methods showsPrec :: Int -> GemRowError -> ShowS # show :: GemRowError -> String # showList :: [GemRowError] -> ShowS # | |
| Eq GemRowError Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Wire | |
decodeInfoRow :: PackageName -> EntryKey -> ByteString -> Either GemRowError GemRow Source #
Decode one complete row without losing timestamp colons or requirement conjunctions.
infoRowIdentity :: PackageName -> ByteString -> Maybe GemCoordinate Source #
Recover a claimed identity before decoding other fields, so malformed duplicates cannot hide.
infoRowVersion :: ByteString -> Maybe Version Source #
Preserve the raw version claim even when the platform or later payload cannot decode.
parseGemRequirement :: Text -> Either GemRowError GemRequirement Source #
Parse conjunctions while retaining each native operator and version spelling.