[Haskell-cafe] (+1) vs let inc=(+1)

Greg Fitzgerald garious at gmail.com
Tue May 22 21:27:54 CEST 2012


In ghci 7.4.1:

Prelude> :t (+1)
(+1) :: Num a => a -> a

Prelude> let inc=(+1)
Prelude> :t inc
inc :: Integer -> Integer

Why the difference?

Thanks,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120522/cbecab41/attachment.htm>


More information about the Haskell-Cafe mailing list