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

instance (m ~ IO) => Example (PropertyT m a) is overly restrictive #43

Open
parsonsmatt opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@parsonsmatt
Copy link
Collaborator

Apparently we've been running hspec-hedgehog-0.0.1.2 at work until recently, because we just saw an error where we'd defined instance Example (PropertyT SqlSpec a) locally. We use it for tests like:

checkThing gen = do
  a <- forAll gen
  q <- lift $ select (f a)
  a === t q

This is related to #17 and #18 because I think there may be other/better ways of dealing with type inference.

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

1 participant