aboutsummaryrefslogtreecommitdiff
path: root/client/src/Util/Either.hs
blob: e76bc8af6790294aadd3f31140404f6f2c5513d0 (plain)
1
2
3
4
5
6
7
module Util.Either
  ( eitherToMaybe
  ) where

eitherToMaybe :: forall a b. Either a b -> Maybe b
eitherToMaybe (Right b) = Just b
eitherToMaybe _         = Nothing