ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Package.Entry

Description

Artifact coordinates inside one source snapshot. Adapters assign keys before admission. Assembly combines them with the snapshot and winning source.

Synopsis

Documentation

data EntryKey Source #

A raw entry's coordinate, independent of its declared artifact filename.

Constructors

ArrayEntry Int

A zero-based position in the original array, before any entry drops.

RecordEntry Int

A zero-based physical record ordinal, including skipped blank records.

ObjectEntry Text

The exact key in the original object, before normalisation.

SingletonEntry

A snapshot that contains only one artifact entry.

Instances

Instances details
Show EntryKey Source # 
Instance details

Defined in Ecluse.Core.Package.Entry

Eq EntryKey Source # 
Instance details

Defined in Ecluse.Core.Package.Entry

Ord EntryKey Source # 
Instance details

Defined in Ecluse.Core.Package.Entry

validEntryKey :: EntryKey -> Bool Source #

Array and record coordinates cannot precede the first source entry.

validRecordKey :: EntryKey -> Bool Source #

A physical row of a record stream, the only coordinate a native line-oriented source assigns.

distinctKeys :: Ord key => [key] -> Bool Source #

No key repeats, so no stored coordinate or identity can select two entries.

data AdmittedEntry Source #

The admitted coordinate and filename, without retaining the artifact's other metadata.

Instances

Instances details
Show AdmittedEntry Source # 
Instance details

Defined in Ecluse.Core.Package.Entry

Eq AdmittedEntry Source # 
Instance details

Defined in Ecluse.Core.Package.Entry