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/
This module supports defining business logic as a set of rules. You can think of it as a functional rules engine. The logic is built up of rules that are composed into rule sets. In traditional rules engines these rule sets can be executed in a variety of ways that can yield different results. Morphir prefers predictability over flexibility so we only support sequential execution. While this might sound limiting it greatly improves readability and enforces modelers to break up large rule sets into smaller targeted ones.
Chain a list of rules into a single rule. Rules are evaluated sequentially in the order they were supplied and the first rule that matches will be applied.
myChain =
chain
[ \a -> Nothing -- A rule that never matches
, \a -> Just a -- A rule that always matches and returns the original value
]
myChain 42 == Just 42Simply returns true for any input. Use as a wildcard in a decision table.
Returns True only if the second argument is equal to the first. Use in a decision table for exact match.
Returns True only if the second argument can be found in the list specified in the first argument. Use in a
decision table to match when a value is in a predefined set.
Returns True only if the second argument cannot be found in the list specified in the first argument. Use in a
decision table to match when a value is not in a predefined set.
Type that represents a single rule. A rule is a function that is only applicable on certain inputs. In other words it's a partial-function. Since Elm/Morphir only supports total functions it is represented as a function that returns an optional value. When the function is applicable it will return
Just botherwiseNothing.