aboutsummaryrefslogtreecommitdiff
path: root/src/executable/haskell/Utils/Either.hs
blob: 5d62dcc0be365e7bda1a8d19780d87a2cb1e3316 (plain)
1
2
3
4
5
6
7
module Utils.Either
  ( mapLeft
  ) where

mapLeft :: (a -> c) -> Either a b -> Either c b
mapLeft f (Left l) = Left (f l)
mapLeft _ (Right r) = (Right r)