How to write the type signature of a function in Haskell

261 views Asked by At

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.

1

There are 1 answers

2
Tamás Fodor On
isEarlier :: (Int, Int) -> (Int, Int) -> Bool