I am trying to use Data.Functor.Coproduct from comonad , but it seems to have disappeared in the latest version.
The changelog mentions that it is deprecated in favor of Data.Functor.Sum , but I don't know where I can find the equivalent coproduct function for Sum :
coproduct :: (fa -> b) -> (ga -> b) -> Coproduct fga -> b
haskell packages
Damian nadales
source share