text to int haskell code example Example: haskell int to text Prelude> show 3 "3" Prelude> read $ show 3 :: Int 3