Morgan-Stanley / morphir-elm / Morphir.IR.Package

Tools to work with packages.


type Distribution
    = 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 Morphir.IR.Module.ModulePath (Morphir.IR.Module.Specification a) }

Type that represents a package specification.


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

Type that represents a package definition.

emptyDefinition : Definition a

An empty package definition.


type alias PackagePath =
Morphir.IR.Path.Path

definitionToSpecification : Definition a -> Specification a

eraseDefinitionAttributes : Definition a -> Definition ()

eraseSpecificationAttributes : Specification a -> Specification ()