You are viewing a single comment's thread. Return to all comments →
You might find the interact function from Prelude useful:
interact
interact :: (String -> String) :: IO ()
Then you could do:
main = interact myProgram
Seems like cookies are disabled on this browser, please enable them to open this website
Common Divisors
You are viewing a single comment's thread. Return to all comments →
You might find the
interact
function from Prelude useful:Then you could do: