krisajenkins/elm-exts/9.1.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Result

Extensions to the core Result library.

bimap : (e -> f) -> (a -> b) -> Result e a -> Result f b

Treat Result as a bifunctor.

isOk : Result a b -> Bool

Boolean checks for success/failure.

isErr : Result a b -> Bool
resultWithDefault : b -> Result a b -> b

Like Maybe.withDefault, for Results.

mappend : Result e a -> Result e b -> Result e ( a, b )

Monoidal append - join two Results together as though they were one.