I am currently learning how to write type classes. I can\'t seem to write the Ord type class with compile errors of ambiguous occurrence.
module Practice where
The problem is that the names of your functions are clashing with the standard ones from the Prelude.
To solve this, you can add an explicit import declaration which hides the conflicting names:
module Practice where import Prelude hiding (Ord, compare, (<), (<=), (>=), (>), max, min) ...