| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Source
Description
Logical Cargo registry identity. Comparison grants no transport or credential authority.
Synopsis
- data CargoSource
- parseSource :: Text -> Either ParseError CargoSource
- sourceComparisonKey :: CargoSource -> Text
Documentation
data CargoSource Source #
The source kind and canonical URL remain separate, except Cargo's built-in crates.io substitution.
Instances
| Show CargoSource Source # | |
Defined in Ecluse.Core.Registry.Cargo.Source Methods showsPrec :: Int -> CargoSource -> ShowS # show :: CargoSource -> String # showList :: [CargoSource] -> ShowS # | |
| Eq CargoSource Source # | |
Defined in Ecluse.Core.Registry.Cargo.Source | |
| Ord CargoSource Source # | |
Defined in Ecluse.Core.Registry.Cargo.Source Methods compare :: CargoSource -> CargoSource -> Ordering # (<) :: CargoSource -> CargoSource -> Bool # (<=) :: CargoSource -> CargoSource -> Bool # (>) :: CargoSource -> CargoSource -> Bool # (>=) :: CargoSource -> CargoSource -> Bool # max :: CargoSource -> CargoSource -> CargoSource # min :: CargoSource -> CargoSource -> CargoSource # | |
parseSource :: Text -> Either ParseError CargoSource Source #
Retain URI identity components and apply Cargo's comparison rules without forming a transport address.
sourceComparisonKey :: CargoSource -> Text Source #
This key is for resolver comparison and must never form a request address.