ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Mirror.Documents

Description

A durable mirror format's operations over its managed documents. Each adapter declares them, so the mirror view restores and assembles retained versions without naming a format.

Synopsis

Documentation

data MirrorDocuments Source #

Restore, ordering and assembly of one format's managed mirror documents.

Constructors

MirrorDocuments 

Fields

restoreFragments :: (Int -> EntryKey) -> (MirrorReadData -> Maybe (source, Map EntryKey entry)) -> MirrorVersion -> [Artifact] -> Maybe (NonEmpty (PackageDetails, source, NonEmpty (Artifact, entry))) Source #

Pair each fragment's retained entries with the current target file of the same name, numbering artifacts across fragments.