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

Implement FantasyLand ChainRec #35

Open
safareli opened this issue Sep 6, 2016 · 4 comments
Open

Implement FantasyLand ChainRec #35

safareli opened this issue Sep 6, 2016 · 4 comments

Comments

@safareli
Copy link

safareli commented Sep 6, 2016

As of fantasyland/fantasy-land#152 implement ChainRec specification.

MonadRec instance for Either in purescript might be usefull

I would create PR when have time.

@robotlolita
Copy link
Member

Thanks :)

I'll probably visit this after the 2.0 release. Tail recursion is something I feel people have particularly missed in Tasks.

@safareli
Copy link
Author

safareli commented Sep 6, 2016

Here is implementation for data.task with tests (it's not quite correct as it is not handling cleanup stuff but without that it works well)

@safareli
Copy link
Author

Here i have implemented chainRec for IO, Future, Maybe, Either and Identity so we have work to adopt from

@robotlolita
Copy link
Member

Thanks for the references :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants