Reputation: 21
How do I write the type signature of this function in Haskell?
isEarlier (a, b) (x, y) = (a * 60 + b) < (x * 60 + y)
It decides if a date is earlier than the other one and print out True/False.
Upvotes: 1
Views: 267
isEarlier :: (Int, Int) -> (Int, Int) -> Bool