Ad
  • Custom User Avatar

    For clarity: if tests were to feed your solution an input with an Eq instance but not an Ord instance, it would fail. So you are not implementing the specs fully; you are too restrictive.

    In short: no, but tests are inadequate, so yes.

  • Custom User Avatar

    To me it feels like rewriting the problem. Maybe the test spec should feed a list of a custom datatype with only Eq instance.