A convenience function for testing properties in GHCi. For example, at GHCi:
lawsCheck (monoidLaws (Proxy :: Proxy Ordering))Monoid: Associative +++ OK, passed 100 tests.Monoid: Left Identity +++ OK, passed 100 tests.Monoid: Right Identity +++ OK, passed 100 tests.
Assuming that the Arbitrary instance for Ordering is good, we now have confidence that the Monoid instance for Ordering satisfies the monoid laws.