Package

Functions for working with package identifiers.

type Package

A package is identified by a string in the following format:

author/name

Where author represents the person, or organization, that built the package, and name is... well, a name. A name should ideally describe the purpose of the package.

Both author and name can contain alphanumeric characters and a single dash as a seperator, but no other characters.

author : Package -> String

Retrieve the package author.

name : Package -> String

Retrieve the package name.

fromString : String -> Maybe Package

Attempt to convert a String into Package.

cliParser : ValueParser Package

A parser for use with CLI.Parser.

toString : Package -> String

Turn Package into a String.

toJson : Package -> Value

Turn Package into Json.