Where did Data.Functor.Coproduct. go?

Viewed 161

I'm trying to use Data.Functor.Coproduct from comonad, but it seem to have disappeared in the latest version.

In the changelog it is mentioned that it was deprecated in favor of Data.Functor.Sum, but I don't know where I can find an equivalent coproduct function for Sum:

coproduct :: (f a -> b) -> (g a -> b) -> Coproduct f g a -> b
0 Answers
Related