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.Module

Modules are groups of types and values that belong together.

type alias Specification a =
{ types : Dict Name (Documented (Specification a))
, values : Dict Name (Specification a)
}

Type that represents a module specification.

type alias Definition a =
{ types :
Dict Name (AccessControlled (Documented (Definition a)))
, values : Dict Name (AccessControlled (Definition a))
}

Type that represents a module definition. It includes types and values.

type alias ModulePath =
Path
definitionToSpecification : Definition a -> Specification a
eraseSpecificationAttributes : Specification a -> Specification ()
mapDefinitionAttributes : (a -> b) -> Definition a -> Definition b
mapSpecificationAttributes : (a -> b) -> Specification a -> Specification b