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

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