| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Directory.Internal
Description
The Compact Index directory parser under any gem-name ceiling, and its fixed production ceiling. Importing this module opts out of the public surface's stability promises. It exists so a spec can parse under a small ceiling.
Synopsis
- newtype GemDirectory = GemDirectory {}
- data DirectoryRead = DirectoryRead {}
- directoryNameCeiling :: Int
- directoryStepsWithin :: Monad m => Int -> (Int -> m ()) -> Steps m DirectoryRead
- applyChanges :: ByteString -> ByteString -> ByteString
Documentation
newtype GemDirectory Source #
Sorted complete rows carry an explicit blank info-file hint.
Constructors
| GemDirectory | |
Fields | |
Instances
| Show GemDirectory Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Directory.Internal Methods showsPrec :: Int -> GemDirectory -> ShowS # show :: GemDirectory -> String # showList :: [GemDirectory] -> ShowS # | |
| Eq GemDirectory Source # | |
data DirectoryRead Source #
A parsed directory and the malformed rows it dropped, in source order.
Constructors
| DirectoryRead | |
Fields | |
Instances
| Show DirectoryRead Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Directory.Internal Methods showsPrec :: Int -> DirectoryRead -> ShowS # show :: DirectoryRead -> String # showList :: [DirectoryRead] -> ShowS # | |
| Eq DirectoryRead Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Directory.Internal Methods (==) :: DirectoryRead -> DirectoryRead -> Bool # (/=) :: DirectoryRead -> DirectoryRead -> Bool # | |
directoryNameCeiling :: Int Source #
Distinct gem names one directory may hold. config/default.yaml and the RubyGems protocol reference document it.
directoryStepsWithin :: Monad m => Int -> (Int -> m ()) -> Steps m DirectoryRead Source #
Repeated rows apply additions and removals under a gem-name ceiling. The metadata byte cap bounds the rows.
applyChanges :: ByteString -> ByteString -> ByteString Source #
Apply comma-separated additions and - removals to a version list, in sorted token order.