tags:

views:

169

answers:

3

How can I convert Int to Integer in Haskell?

+7  A: 

There is a toInteger function you can use.

sth
in haskell please
marco
@marco: Yes, in Haskell.
sth
@marco, @sth: lol
taspeotis
+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
+1  A: 

also, you can use fromIntegral (since Int is an Integral)

newacct