If I try to use ordering
in the DAML REPL, I get the following error message:
daml> compare (1,2) (1,3)
File: Line17.daml
Hidden: no
Range: 9:10-9:38
Source: typecheck
Severity: DsError
Message:
Line17.daml:9:11: error:
• No instance for (Show Ordering) arising from a use of ‘show’
• In the first argument of ‘return’, namely
‘(show (compare (1, 2) (1, 3)))’
In the expression: return (show (compare (1, 2) (1, 3)))
In an equation for ‘expr’:
expr _ _ _ _ x _ _ parties _ steps _ _ _ _ chain _ _
= return (show (compare (1, 2) (1, 3)))