I'm currently trying to add some tests to the multiset package. In particular, I want to test MultiSet's Foldable instance.
It turns out that I can't currently use foldableLaws for this, as I can't define an Arbitrary1 instance for MultiSet. The problem is the Ord constraint on the elements.
Can you recommend a workaround or maybe offer a version of foldableLaws that doesn't require Arbitrary1?
I'm currently trying to add some tests to the
multisetpackage. In particular, I want to testMultiSet'sFoldableinstance.It turns out that I can't currently use
foldableLawsfor this, as I can't define anArbitrary1instance forMultiSet. The problem is theOrdconstraint on the elements.Can you recommend a workaround or maybe offer a version of
foldableLawsthat doesn't requireArbitrary1?