[Haskell-cafe] Recursion

Dave at haskell.org Dave at haskell.org
Tue Mar 6 10:06:29 EST 2007

Does the following code increase the level of recursion
once for each input line or is the recursive construct
converted to an iteration?

Dave Feustel

main :: IO ()
main = do
  line <- getLine
  processIt line

processIt   :: String -> IO ()
processIt s = do
  print (length s)

More information about the Haskell-Cafe mailing list