Skip to content

Add instance IsTest (ContT () IO t)#466

Open
Bodigrim wants to merge 1 commit intomasterfrom
istest-for-contt
Open

Add instance IsTest (ContT () IO t)#466
Bodigrim wants to merge 1 commit intomasterfrom
istest-for-contt

Conversation

@Bodigrim
Copy link
Collaborator

@Bodigrim Bodigrim commented Feb 3, 2026

Following up on our discussion with @mrkline at Bodigrim/tasty-bench#69, how do we feel about adding instance IsTest t => IsTest (ContT () IO t)? Essentially it provides a way to run a test with a resource, which is

  • more lightweight than withResource, which operates over TestTrees and is great to share a resource between tests but not that great if you want a single test,
  • allows to deal with a more restrictive resource-providing API (imagine that a certain resource is provided only by withFoo combinator instead of having both openFoo and closeFoo exposed).

The new instance does not cost us anything in terms of dependencies. Any opinions?

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.

1 participant