How can I convert Int
to Integer
in Haskell?
in haskell please
marco
2010-10-31 03:55:21
@marco: Yes, in Haskell.
sth
2010-10-31 03:56:28
@marco, @sth: lol
taspeotis
2010-10-31 05:08:24
+3
A:
fromIntegral is a good generic way to convert any Integral value into any other Integeral. But as sth said, toInteger works for the case of converting specifically to an Integer.
Michael Snoyman
2010-10-31 05:06:03