The first Google result: https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Ord.html It says right there that you need to define (at least) either "compare" or "<=", and that there's no "ord" function.

Best regards,
Marcin Mrotek