utility-ht-0.0.13: Various small helper functions for Lists, Maybes, Tuples, Functions

Safe HaskellSafe
LanguageHaskell98

Data.Either.HT

Documentation

mapLeft :: (a -> b) -> Either a c -> Either b c #

mapRight :: (b -> c) -> Either a b -> Either a c #

mapBoth :: (a -> c) -> (b -> d) -> Either a b -> Either c d #