The Wayback Machine - https://web.archive.org/web/20200521041623/https://github.com/topics/comonads
Skip to content
#

comonads

Here are 10 public repositories matching this topic...

robrix
robrix commented Apr 1, 2018

Then encodes the continuation passed to >>= in the same way as Coyoneda encodes the function passed to fmap; you can in fact arrive at a definition of Freer using Coyoneda:

data Freer f a where
  Return :: a -> Freer f a
  Then :: f b -> (b -> Freer f a) -> Freer f a

is isomorphic to

data Coyoneda f a where
  Coyoneda :: (b -> a) -> f b -> Coyon

Improve this page

Add a description, image, and links to the comonads topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the comonads topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.