-
Notifications
You must be signed in to change notification settings - Fork 9
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
api change proposal #122
Comments
The As far as the
I should probably write a
So the
We could put this and all the others like it in the library at |
API noise might be able to be cut.
Proxy
noisewe should drop support for GHC 7.x. primitive is going to do this soon. This has a few benefits:
-XTypeApplications
, cleaning up codeLaws
noiseso, most of the time, i am creating laws, and immediately consuming them. as a user, that categorises them to me as noise, and not something useful - which goes against one of the core tenets of this library: the least amount of new types and concepts for end users as possible. How can we remedy this?
Well, if I take a look, all of my tests with this library fit in the following categories:
I never transform laws, I always produce them and immediately consume them.
All I really want from lawsCheck functions is to give them a type and a set of laws, have it run the tests in IO, printing results as it goes.
So, why not something like the following rough sketch
and you can use it like so:
I'm not sure if this is the best way of accomplishing my stated goal of eliminating
Laws
from users' code, but it is a way.Keep in mind that I think we've already done a fantastic job cutting down on API cruft from the status quo, and the API as it is today is still very simple. You have a type,
Laws
, a way to produceLaws
, and a way toconsume
Laws. But in my code I always find that most of the time, consumption immediately following production is a smell.The text was updated successfully, but these errors were encountered: