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

Fix documentation (or design) of Free Monad #4488

Open
samthebest opened this issue Jul 31, 2023 · 0 comments
Open

Fix documentation (or design) of Free Monad #4488

samthebest opened this issue Jul 31, 2023 · 0 comments

Comments

@samthebest
Copy link

Having played around with ScanamoOps I learnt that we cannot compare if two cats Free Monads are equal.

It seems it boils down to FlatMapped "case class" having a Function in it https://github.com/typelevel/cats/blob/main/free/src/main/scala/cats/free/Free.scala

That's fine, but the documentation says:

represent stateful computations as data, and run them

https://typelevel.org/cats/datatypes/freemonad.html

Please fix the documentation to say:

represent stateful computations as opaque function references, and run them

cc @stacycurl @davegurnell

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

1 participant