Closed kurtmilam closed 2 years ago
Adding an example sounds good to me, sure!
There is also the whole test
folder that exercise a good deal of the core data types using the library, it's probably worth adding a line to the README about using that as a reference too.
Thanks for the work on this library!
If you're open to it, I'd like to submit a PR to add a minimal example to the docs. I was thinking something along the lines of this:
If you're open to adding an example to the docs, I assume it would be straightforward to adapt the example for
purescript-strongcheck-laws
as well.I guess an even more minimal example would be to test an existing type that has a Functor instance, but I had a difficult time getting the
Eq
andArbitrary
instances right for a custom type in order to be able to test itsFunctor
instance with QuickCheck.