Skip to content

Document effectful properties in the ScalaCheck docs - #384

Open
NopeCharon wants to merge 1 commit into
typelevel:mainfrom
NopeCharon:docs/scalacheck-effectful-properties
Open

NopeCharon wants to merge 1 commit into
typelevel:mainfrom
NopeCharon:docs/scalacheck-effectful-properties

Conversation

@NopeCharon

Copy link
Copy Markdown

Closes #383

Adds an "Effectful properties" section to the ScalaCheck page showing that forall accepts bodies returning IO[Expectations], with an mdoc example and a note on perPropertyParallelism. Related to #372.

The example was compiled and run as a test against the scalacheck module.

The ScalaCheck page only showed pure property bodies, which suggests that
forall cannot take an effectful body. forall accepts any body returning
F[Expectations] (e.g. IO[Expectations]) via the Prop typeclass, and
perPropertyParallelism controls how many inputs are evaluated concurrently
using the effect system's concurrency.

Add an 'Effectful properties' section with an mdoc example using Ref and
a note about perPropertyParallelism. The example was compiled and run
against the scalacheck module.

This branch has not been deployed

No deployments
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.

Document effectful properties in the ScalaCheck integration docs

1 participant