Haskell : Type casting Int to String

Posted by Legatou on Stack Overflow See other posts from Stack Overflow or by Legatou
Published on 2010-05-06T20:32:21Z Indexed on 2010/05/06 20:38 UTC
Read the original article Hit count: 320

Filed under:
|
|
|
|

I know you can convert a String to an number with read like so:

Prelude> read "3" :: Int

3

Prelude> read "3" :: Double

3.0

But how do you grab the string representation of an Int value?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about int