<div dir="ltr"><div><div><div>I have the function f which reads lines form the stdin and looks like this:<br><br>f :: [IO String]<br>f = getLine : f<br><br></div><div>What I don&#39;t like is the fact that the line processing I&#39;m doing will have to be in the IO Monad<br>
<br></div>I would like to make this function to have the signature <br>f : IO [String] <br></div>...such that I can get rid of the IO monad and pass the pure string list to the processing function. <br><br>Can I do this?<br>
<br></div>Thanks<br></div>