Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Comonad instance to Control.Applicative.Free #160

Merged
merged 1 commit into from
Aug 21, 2017
Merged

Add a Comonad instance to Control.Applicative.Free #160

merged 1 commit into from
Aug 21, 2017

Conversation

paf31
Copy link
Contributor

@paf31 paf31 commented Aug 17, 2017

Free f can be built out of f, Day, Identity and Coproduct, so I think Free f should be a Comonad whenever f itself is.

It's unfortunately not a ComonadTrans, since you can't lower in the Pure case (although the free Apply is). I wrote a bit more about this here.

Since `Day` is a `Comonad`, and the free `Applicative` can be built out of `Day` and coproducts, `Free f` is also a`Comonad` whenever `f` itself is.
@RyanGlScott RyanGlScott merged commit a0c5bef into ekmett:master Aug 21, 2017
RyanGlScott added a commit that referenced this pull request Jan 19, 2018
@paf31 paf31 deleted the patch-1 branch January 5, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants