-
Notifications
You must be signed in to change notification settings - Fork 16
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
Improve showing functions #11
Comments
Perhaps the current instance for a->b should live in a separate module so that it can be optionally imported ? |
It would be nice indeed, but this instance is needed to be able to test higher-order functions. (Note the Show constraint in |
This has now become a real problem. Some of tasty's dependencies (I don't know which one) apparently imports
So, I'm going to remove the |
Here are two approaches that I can think of:
I'm tempted to implement both approaches, like QuickCheck does ( |
I think that modern QuickCheck-like frameworks with powerful shrinking such as |
First, provide a Fun datatype which knows about the function structure and show it instead.
Second, implement either function shrinking as described by Klaessen, or lazy-smallcheck-like shrinking.
The text was updated successfully, but these errors were encountered: