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