ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Version.Cargo

Description

Native Cargo SemVer with u64 release numbers and ASCII identifiers. Numeric prerelease identifiers compare by length and text, without a machine-integer limit.

Synopsis

Documentation

data CargoKey Source #

A native ordering key. Equality and precedence exclude build metadata.

Instances

Instances details
Show CargoKey Source # 
Instance details

Defined in Ecluse.Core.Version.Cargo

Eq CargoKey Source # 
Instance details

Defined in Ecluse.Core.Version.Cargo

Ord CargoKey Source # 
Instance details

Defined in Ecluse.Core.Version.Cargo

parseCargo :: Text -> Maybe CargoKey Source #

Parse three release numbers and native suffixes within the shared version-text bound.

renderCargo :: CargoKey -> Text Source #

Render native spelling, including build metadata excluded from ordering.

isCargoStable :: CargoKey -> Bool Source #

Whether the version has no prerelease suffix.

cargoUniquenessKey :: CargoKey -> Text Source #

The native uniqueness spelling, excluding build metadata and retaining prerelease identity.