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

FreeT #1158

Closed
adelbertc opened this issue Jun 24, 2016 · 6 comments
Closed

FreeT #1158

adelbertc opened this issue Jun 24, 2016 · 6 comments

Comments

@adelbertc
Copy link
Contributor

No description provided.

@zainab-ali
Copy link
Contributor

This sounds interesting. Presumably something along the lines of

class FreeT[F[_], S, A](fa: F[Free[S, A]]) {
  def map[B](f: A => B): FreeT[F, S, B] = ???
}

@raulraja
Copy link
Contributor

@adelbertc We have two use cases for FreeT at 47 both for Fetch and Github4s. I recall discussing with you back then that stack safety was a concern for implementing FreeT and some other areas needed to change to support that. Do you know out of the top of your head if this limitation is cleared? If so we can take a shot at contributing FreeT to cats. thanks!

@ceedubs
Copy link
Contributor

ceedubs commented Jun 29, 2016

@zainab-ali not quite like that. http://functorial.com/stack-safety-for-free/index.pdf contains some more information (though it uses PureScript as opposed to scala), and scalaz also has one.

@adelbertc
Copy link
Contributor Author

@raulraja Hm I don't quite remember the "other areas needed to change" but I suppose yeah, FreeT I'm guessing would need to be stack safe for all choice of F[_] so we need to be careful with that.

@raulraja
Copy link
Contributor

raulraja commented Jun 29, 2016

Cool, I'll look into it as soon as we get Scala Exercises out this week. Thanks @adelbertc

@beefyhalo
Copy link

This would be great 👍

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

5 participants