Tamás Fodor
Tamás Fodor

Reputation: 21

How to write the type signature of a function in Haskell

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

Answers (1)

Tam&#225;s Fodor
Tam&#225;s Fodor

Reputation: 21

isEarlier :: (Int, Int) -> (Int, Int) -> Bool

Upvotes: 1

Related Questions