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

Sync[State[F, S, ?]] instance is stack unsafe in left associative binds #139

Closed
alexandru opened this issue Mar 7, 2018 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@alexandru
Copy link
Member

These Sync laws fail for Sync[State[F, S, ?]]:

  • stack safety on repeated left binds
  • stack safety on repeated maps

We never noticed it because the number of iterations we were doing was hardcoded to 10000.
However if you go past that, e.g. 100000, then it fails with a StackOverflowException.

Noticed it while making that number configurable in #138.

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

No branches or pull requests

1 participant