finos/morphir-elm/1.0.0

NOTE: the latest version is 22.0.2

Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.

Morphir.IR.Package

Tools to work with packages.

= Library PackagePath (Definition ())

Type that represents a package distribution. A distribution contains all the necessary information to consume a package.

type alias Specification a =
{ modules : Dict ModulePath (Specification a) }

Type that represents a package specification.

type alias Definition a =
{ dependencies : Dict PackagePath (Specification a)
, modules : Dict ModulePath (AccessControlled (Definition a))
}

Type that represents a package definition.

emptyDefinition : Definition a

An empty package definition.

type alias PackagePath =
Path
definitionToSpecification : Definition a -> Specification a
eraseDefinitionAttributes : Definition a -> Definition ()
eraseSpecificationAttributes : Specification a -> Specification ()