looking for System.Console.Readline example

MartinNorbäck d95mback at dtek.chalmers.se
Tue Dec 2 13:55:52 EST 2003


tis 2003-12-02 klockan 12.55 skrev Johannes Waldmann:
> I am looking for an example program
> that uses System.Console.Readline
> 
> http://www.haskell.org/ghc/docs/latest/html/readline/System.Console.Readline.html
> 
> If my main program looks like this:
> main = do input <- getContents ; handle input
> 
> can I just "drop in" readline somewhere?

Sure.

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

Regards,

	Martin



More information about the Haskell mailing list