Hello,
I have a zip-like applicative instance of a tree (similar to a ZipList), and I would like to test the applicative laws. I know that
Homomorphism
pure f <*> pure x ≡ pure (f x)
holds, but the test suite hangs (because pure x is an infinite tree).
Is there a way to test the the applicative laws but exclude this one test. In general, is there a way to perform a test on a subset of laws?
Thank you!
Hello,
I have a zip-like applicative instance of a tree (similar to a ZipList), and I would like to test the applicative laws. I know that
holds, but the test suite hangs (because
pure xis an infinite tree).Is there a way to test the the applicative laws but exclude this one test. In general, is there a way to perform a test on a subset of laws?
Thank you!