Replace infinite MVar with getLine