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.Elm.Frontend

The Elm frontend turns Elm source code into Morphir IR.

Entry points

PackageInfo
-> List SourceFile
-> Result Errors (Definition SourceLocation)

Function that takes some package info and a list of sources and returns Morphir IR or errors.

SourceFile
-> Exposing
-> List Declaration
-> Result
Errors
(List
( Name
, AccessControlled (Documented (Definition SourceLocation))
)
)

Function that turns elm-syntax declarations to Morphir IR types.

Utilities

type alias ContentLocation =
{ row : Int
, column : Int
}
type alias ContentRange =
{ start : ContentLocation
, end : ContentLocation
}
type Error
= ParseError String (List DeadEnd)
| CyclicModules (Graph () (List String))
| ResolveError SourceLocation Error
| EmptyApply SourceLocation
| NotSupported SourceLocation String
| DuplicateNameInPattern Name SourceLocation SourceLocation
| VariableShadowing Name SourceLocation SourceLocation
| MissingTypeSignature SourceLocation
| RecordPatternNotSupported SourceLocation
type alias Errors =
List Error
type alias PackageInfo =
{ name : Path
, exposedModules : Set Path
}
type alias SourceFile =
{ path : String
, content : String
}
type alias SourceLocation =
{ source : SourceFile
, range : ContentRange
}