readIO package:base-prelude

The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.
Read the value of an IORef