krisajenkins/elm-exts/14.0.1

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, applying the first function to Err values and the second to Ok ones.

isOk : Result e a -> Bool

Boolean checks for success/failure.

isErr : Result e a -> Bool
fromOk : Result e a -> Maybe a

Convert a Result to a Maybe.

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

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