ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Npm.Wire

Description

npm wire types shared by tree decoding and typed extraction during packing.

Synopsis

Shared scalars

data Person Source #

A publisher or contributor. Packed person strings stay verbatim in personName.

Constructors

Person 

Fields

Instances

Instances details
FromJSON Person Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Show Person Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Eq Person Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Methods

(==) :: Person -> Person -> Bool #

(/=) :: Person -> Person -> Bool #

Ord Person Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

personFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f (Maybe Text) -> f Person Source #

Apply the person defaults to fields validated by the tree or packed read.

data License Source #

A declared license, in npm's modern string form or its legacy object form.

Constructors

LicenseSpdx Text

An SPDX expression or identifier (MIT, "(MIT OR Apache-2.0)").

LicenseObject Text (Maybe Text)

The legacy {type, url?} object: a license name and a URL to its text.

licenseFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f License Source #

Apply the legacy licence default to validated fields without requiring an object.

The dist object

data Dist Source #

Artifact coordinates and digests that serving and mirroring preserve.

Constructors

Dist 

Fields

Instances

Instances details
FromJSON Dist Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Show Dist Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Methods

showsPrec :: Int -> Dist -> ShowS #

show :: Dist -> String #

showList :: [Dist] -> ShowS #

Eq Dist Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Methods

(==) :: Dist -> Dist -> Bool #

(/=) :: Dist -> Dist -> Bool #

Ord Dist Source # 
Instance details

Defined in Ecluse.Core.Registry.Npm.Wire

Methods

compare :: Dist -> Dist -> Ordering #

(<) :: Dist -> Dist -> Bool #

(<=) :: Dist -> Dist -> Bool #

(>) :: Dist -> Dist -> Bool #

(>=) :: Dist -> Dist -> Bool #

max :: Dist -> Dist -> Dist #

min :: Dist -> Dist -> Dist #

distFields :: [Text] Source #

The dist members the Dist parser reads.

distFromFields :: Applicative f => f Text -> f (Maybe Text) -> f (Maybe Text) -> f (Maybe Int) -> f Dist Source #

Join the required tarball, validated digests and lenient size in either read representation.

Per-version manifest

data VersionManifest Source #

A release's policy inputs. Maintainers stay outside the typed facts, and dependency maps keep one external dependency.

Constructors

VersionManifest 

Fields

availability :: Maybe Value -> Availability Source #

Only a nonempty string or true declares deprecation. Other values remain available.