ThatSnail

wtf

May 25th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. myCompare :: (Ord a) => a -> a -> Ordering
  2. a `myCompare` b
  3. | a == b = EQ
  4. | a <= b = LT
  5. | otherwise = GT
Advertisement
Add Comment
Please, Sign In to add comment