[Haskell-cafe] Signatures in defining functions

Martijn van Steenbergen martijn at van.steenbergen.nl
Thu Feb 5 17:48:03 EST 2009


Hi JTKM,

TKM wrote:
> Now is my question, how should I interpret "Int -> Int -> Int"? Meaning 
> what does "Int -> Int -> Int" mean?

There are many good tutorials and books online. Here's a link that 
directly answers your question:

http://book.realworldhaskell.org/read/types-and-functions.html#id581829

Section "The type of a function of more than one argument"

Hope this helps,

Martijn.


More information about the Haskell-Cafe mailing list