Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/PreludeIO/ReadLn.hs
module Prelude where import ReadIO readLn :: Read a => IO a readLn = do l <- getLine r <- readIO l return r