La fonction read:



Prelude> :t read
read :: (Read a) => String -> a
Prelude> let x = (read "123")::Int
Prelude> x
123
Prelude> :t x