readLn package:numeric-prelude

The readLn function combines getLine and readIO.