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

Add relevant instances for Gen from zio-test #895

Open
nbenns opened this issue Mar 23, 2022 · 1 comment
Open

Add relevant instances for Gen from zio-test #895

nbenns opened this issue Mar 23, 2022 · 1 comment

Comments

@nbenns
Copy link
Contributor

nbenns commented Mar 23, 2022

It would be nice to be able to use prelude combinators when creating Generators using zio-test, for example IdentityBoth, Covariant instances to support mapN, forEach and flip.

However, adding instances to zio-prelude itself would cause it to depend on zio-test and therefore pull zio-test into application code.

Should there be separate sub-module created to support these test instances?
something like zio-prelude-test for example.

@adamgfraser
Copy link
Contributor

I think ZIO Prelude Laws could be a logic place for this since it already depends on both ZIO Prelude and ZIO Test and provides other relevant functionality that requires both libraries (e.g. generators for ZIO Prelude data types, laws for ZIO Prelude data types).

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

2 participants