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 (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/maoo/morphir-elm (a fork).
What we checked: Rebuilt with git archive from commit 7391258a1c4a of https://github.com/maoo/morphir-elm (a fork) (zip prefix Morgan-Stanley-morphir-elm-fdf8b1f/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 9baff74aa05916d1b8c87fb1721afa241fc67af7.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/Morgan-Stanley/morphir-elm/zipball/2.1.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.