Replace calls to 'putStrLn $ show' with 'print'