class BinaryFunctor f where bimap :: (a -> c) -> (b -> d) -> f a b -> f c d mapFst = (`bimap id`) mapSnd = bimap id
class BinaryFunctor f where bimap :: (a -> c) -> (b -> d) -> f a b -> f c d
mapFst = (`bimap id`) mapSnd = bimap id