Hello!
It looks like deriving ord when a type contains a variant called Error leads a bug.
This is what happens:

While if we do the same thing with a field called SError for example, it works.
I am guessing the generated expression contains the Result.Error type and there's some clash..