looking for System.Console.Readline example

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Tue Dec 2 14:23:49 EST 2003


Martin Norbäck wrote:

> main = do input <- readline "prompt> " ; handle input

but this only reads one line (and it gives a Maybe String)
I wanted a (lazy) list of all input lines,
where the user should have the usual line editing functions available.
-- 
-- Johannes Waldmann,  Tel/Fax: (0341) 3076 6479 / 6480 --
------ http://www.imn.htwk-leipzig.de/~waldmann/ ---------




More information about the Haskell mailing list