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

Support for non-Identity generator monad #4

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

fsoikin
Copy link
Member

@fsoikin fsoikin commented Oct 11, 2024

Fixes #2

  • runSpecAndGetResults and runSpecAndExitProcess' are now generic in the generator monad that has to support unwrapping the Aff via the new class TestTreeGenerator
  • runSpecAndExitProcess, however, still insists on Identity. This is because making it generic would require explicit specification of which monad to use (either via a type signature or with VTA), which will needlessly complicate the most base use case. On the other hand, when the use case becomes more complex, the SpecT value usually already has a type signature anyway.

@fsoikin fsoikin merged commit 4a855c6 into master Oct 11, 2024
3 checks passed
@fsoikin fsoikin deleted the allow-non-identity branch October 11, 2024 03:35
@srghma
Copy link

srghma commented Oct 12, 2024

👍

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 this pull request may close these issues.

cannot use beforeAll
2 participants