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

Cofree comonad #1422

Closed
edmundnoble opened this issue Oct 24, 2016 · 11 comments
Closed

Cofree comonad #1422

edmundnoble opened this issue Oct 24, 2016 · 11 comments

Comments

@edmundnoble
Copy link
Contributor

Should I add it? Would anyone be interested in both lazy and strict versions of Cofree? I find the strict version very useful in creating trees.

@adelbertc
Copy link
Contributor

adelbertc commented Oct 24, 2016

Paging @sellout and @tpolecat our Cofree extraordinnaires

@sellout
Copy link
Contributor

sellout commented Oct 24, 2016

Well, I think if you’re going to have Free, you should have Cofree! I’m still mostly a Cats spectator at this point, though.

@adelbertc
Copy link
Contributor

I think it makes sense to have corresponding Co- versions of the Free stuff we have. 👍 from me.

@edmundnoble
Copy link
Contributor Author

I'm on it. My current plan is to trampoline the tail with Eval, if anyone is interested in a strict Cofree (or, perhaps, a tagged "newtype" with strict instances on a Cofree) please do speak up.

@adelbertc
Copy link
Contributor

Awesome, thanks!

@tpolecat
Copy link
Member

Yep we definitely need this. Scalaz only has the lazy one and nobody ever complained as far as I know so that's probably sufficient.

@adelbertc
Copy link
Contributor

adelbertc commented Oct 25, 2016

Do you think it would also make sense to add Fix-y things, or does that belong in a (hypothetical) matryoshka-cats ?

@sellout
Copy link
Contributor

sellout commented Oct 25, 2016

@adelbertc I vote the latter – I really want to make Matryoshka FP-lib-agnostic, but don’t really have the bandwidth for it at the moment.

Also, because I think there’s another lib of higher-order stuff (which I am tentatively calling Griffins) that Matryoshka will want, that we probably(?) don’t want to lump into Cats.

@tpolecat
Copy link
Member

Yeah I think Free and Cofree are probably good enough for Cats proper.

@KadekM
Copy link

KadekM commented Oct 27, 2016

Yes please, Cofree is useful and I'd feel much better using standardised cats one than reinventing it :)

@kailuowang
Copy link
Contributor

closed by #1446

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

No branches or pull requests

6 participants