myCompare :: (Ord a) => a -> a -> Ordering
a myCompare
b
| a > b = GT
| a == b = EQ
| otherwise = LT
Untitled
As of March 2020, School of Haskell has been switched to read-only mode.
As of March 2020, School of Haskell has been switched to read-only mode.
myCompare :: (Ord a) => a -> a -> Ordering
a myCompare
b
| a > b = GT
| a == b = EQ
| otherwise = LT