[Haskell-beginners] A basic misunderstanding of how to program with IO

Ken Overton koverton at lab49.com
Sun May 9 19:30:47 EDT 2010


> I think, yes your function looks close to typical Haskell, you're just
> missing a "do", a pair of parentheses, and an "IO":

Sorry, I'd definitely intended the 'do' to be there.  

>     interact :: String -> IO Resp

Thanks Isaac; so after I've called this how do I get the Resp value back out of the returned IO?

Regards,

--kov


More information about the Beginners mailing list