krisajenkins/elm-exts/19.0.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Result

Extensions to the core Result library.

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

Apply functions to both sides of a Result, transforming the error and ok types.

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.