Closed safareli closed 5 years ago
I think you want _co_variant Day
.
Day fx gy \_ _ -> (Day fx gy xya)
<- the _'s there make me look askance at this definition.
You need to duplicate f and g separately, then you can fix this definition though, at least, as Phil notes, for covariant Day convolution.
There is a comonad instance already: https://hackage.haskell.org/package/kan-extensions-5.2/docs/src/Data.Functor.Day.html#line-103
Not sure how useful it could be, but I think Day f g is a Comonad given f and g are Comonads.
This seems to be lawful.