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

MonadTests[M].stackUnsafeMonad overflows - MonadLaws.tailRecMStackSafety should be a def #1463

Closed
TrustNoOne opened this issue Nov 10, 2016 · 3 comments · Fixed by #1465
Closed
Assignees

Comments

@TrustNoOne
Copy link

MonadLaws.tailRecMStackSafety is currently a val; this means MonadTests[M].stackUnsafeMonad checks for stack safety anyway as soon as the MonadLaws[M] instance is created

@non
Copy link
Contributor

non commented Nov 10, 2016

Good catch! I think a lazy val might be best but a def would work too.

@edmundnoble
Copy link
Contributor

edmundnoble commented Nov 10, 2016

We should also look into testing stackUnsafeMonad by changing MonadTestsTests to use a stack-unsafe monad.

@travisbrown
Copy link
Contributor

Ugh, I think this must have been my fault. Thanks for catching it, @TrustNoOne.

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

Successfully merging a pull request may close this issue.

6 participants