[Haskell-cafe] (+1) vs let inc=(+1)
Greg Fitzgerald
garious at gmail.com
Tue May 22 21:55:41 CEST 2012
Thanks!
$ ghci -XNoMonomorphismRestriction
Prelude> :t (+1)
(+1) :: Num a => a -> a
Prelude> let inc=(+1)
Prelude> :t inc
inc :: Num a => a -> a
Cool.
-Greg
On Tue, May 22, 2012 at 12:34 PM, Artyom Kazak <artyom.kazak at gmail.com>wrote:
> http://www.haskell.org/**haskellwiki/Monomorphism_**restriction<http://www.haskell.org/haskellwiki/Monomorphism_restriction>
>
>
> ______________________________**_________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120522/037d622e/attachment.htm>
More information about the Haskell-Cafe
mailing list