ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.PyPI.Filter

Description

Assemble supported Simple-index fields from exact admitted source coordinates.

Synopsis

Documentation

assembleSimpleIndex :: Text -> Map SourceId (Snapshot SimpleDocument) -> MergePlan -> SimpleDocument -> SimpleDocument Source #

Rebase admitted files under the requested project, preserving their winning source order.

assembleSimpleDocument :: Text -> Map SourceId (Snapshot CachedDoc) -> MergePlan -> Maybe CachedDoc -> CachedDoc Source #

Assemble a PyPI document. Sources from another ecosystem contribute nothing.

serialiseSimpleDocument :: CachedDoc -> Either RenderRefused LByteString Source #

Serialise a PyPI document to compact JSON, or an empty object for another ecosystem.