Either is the wrong name for this monad, because Either = Left l | Right r sound symmetrical. But Either is not symmetrical, because its mapping and bind only works on the Right r constructor. The proper name should be Result = Ok value | Err error. This is not symmetrical and easier to read.
Elm Reference: https://package.elm-lang.org/packages/elm/core/latest/Result
Either is the wrong name for this monad, because
Either = Left l | Right rsound symmetrical. But Either is not symmetrical, because its mapping and bind only works on theRight rconstructor. The proper name should beResult = Ok value | Err error. This is not symmetrical and easier to read.Elm Reference: https://package.elm-lang.org/packages/elm/core/latest/Result