-
Notifications
You must be signed in to change notification settings - Fork 110
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
Bug? Importing Tasty breaks SmallCheck's testing of higher order functions #71
Comments
This probably means that some of Tasty's transitive dependencies imported Which, unfortunately, breaks smallcheck. I plan to get rid of that show instance in smallcheck eventually, but probably won't have time for it anytime soon. You could try to find what package uses |
The offending package was |
Unfortunately, such a fork prevents an upgrade of tasty in Debian. Is there a plan to make |
Well, they are API-compatible, so you could compile tasty against regex-tdfa. Except you'll re-introduce this bug for your users. As I said above, I plan to get rid of that show instance in smallcheck eventually, but probably won't have time for it anytime soon. Alternatively, you could ship my fork of regex-tdfa in place of the original version in Debian. I'm sorry that this makes your life harder. |
Thanks for the overview! I’ll go with tasty 0.8.1.2 for now and revisit this some other time. Are the regex-tdfa maintainers aware of your improvements? |
Probably not; I haven't contacted them. |
Sigh. You seriously put forks on hackage without even bothing to send a quick message to the maintainers? Anyways, I sent them a mail, maybe there can be one regex-tdfa soon again. |
The fork had been made before this issue arose. It was when regex-tdfa remained broken with 7.8 for a significant amount of time, despite many emails sent to the maintainer. After that incident, the maintainer didn't take any steps to prevent such things from happening in the future (such as appointing a backup maintainer). Unless that happens, there's little incentive for me to switch back to regex-tdfa. Of course, how you package it in Debian is an orthogonal question. You enjoy a possibility of applying quick fixes anytime you need them. Hackage allows it only through forking. |
Fair enough. |
I think I found a bug on Tasty, importing it will export the
show
instance for functions (a->b
) onText.Show.Functions
. Making it impossible to test higher order properties for custom types on SmallCheck.Here's a minimal example with a simple boolean type and the ill-conceived property that all operations on booleans are associative.
When running the program above, I get the following error:
If I comment the line where it says
import Test.Tasty
, the program works, and shows the correct counterexample:Is this a bug, or I am using Tasty with SmallCheck in some wrong way?
The text was updated successfully, but these errors were encountered: