I know you can convert a String to an number with read:
String
read
Prelude> read \"3\" :: Int 3 Prelude> read \"3\" :: Double 3.0
Anyone who is just starting with Haskell and trying to print an Int, use:
module Lib ( someFunc ) where someFunc :: IO () x = 123 someFunc = putStrLn (show x)