1 2 3 4 5 6 7 8 9
module Utils.Either exposing ( toMaybeError ) toMaybeError : Result a b -> Maybe a toMaybeError result = case result of Ok _ -> Nothing Err x -> Just x