aboutsummaryrefslogtreecommitdiff
path: root/src/client/Utils/Either.elm
blob: 10c40e3c846504230e1d9cbb8c3495e0df12fe2a (plain)
1
2
3
4
5
6
7
8
9
module Utils.Either
  ( toMaybeError
  ) where

toMaybeError : Result a b -> Maybe a
toMaybeError result =
  case result of
    Ok _ -> Nothing
    Err x -> Just x