Skip to content

How to check higher-kinded types with constrained element types #74

Description

@sjakobi

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions