Morgan-Stanley/morphir-elm/3.0.0

Renamed to finos/morphir-elm. It is published under that name, and new versions come out there.

Versions published as Morgan-Stanley/morphir-elm still install under that name. 5 versions of 5 come from the new location (see their notes).

Rerouted (renamed, needs approval). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/finos/morphir-elm.

What we checked: The repo moved to github.com/finos/morphir-elm and tag 3.0.0 is there; its commit 5fb93bcdc077 is from 2020-10-29 14:07 UTC, after the version was published (2020-08-17 21:31 UTC); elm.json differs from package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

Details · package.elm-lang.org's zip: https://github.com/Morgan-Stanley/morphir-elm/zipball/3.0.0/

Morphir.IR.QName

Module to work with qualified names. A qualified name is a combination of a module path and a local name.

type QName
= QName Path Name

Type that represents a qualified name.

toTuple : QName -> ( Path, Name )

Turn a qualified name into a tuple.

Get the module path part of a qualified name.

Get the local name part of a qualified name.

Creation

fromName : Path -> Name -> QName

Creates a qualified name.

fromTuple : ( Path, Name ) -> QName

Turn a tuple into a qualified name.

String conversion

toString : (Name -> String) -> (Name -> String) -> String -> QName -> String

Turn a qualified name into a string using the specified path and name conventions.

qname =
    QName.fromTuple
        (Path.fromList
            [ Name.fromList [ "foo", "bar" ]
            , Name.fromList [ "baz" ]
            ]
        , Name.fromList [ "a", "name" ]
        )


toString Name.toTitleCase Name.toCamelCase "." qname
--> "FooBar.Baz.aName"


toString Name.toSnakeCase Name.toSnakeCase "/" qname
--> "foo_bar/baz/a_name"