[Haskell-beginners] space leak processing multiple compressed files

Michael Orlitzky michael at orlitzky.com
Tue Sep 4 16:20:34 CEST 2012


On 09/04/2012 06:00 AM, Ian Knopke wrote:
> -- display a field that returns a number
> display :: Int -> IO ()
> display = putStrLn . show

This is just 'print', specialized to Int:

  Prelude> :t print
  print :: Show a => a -> IO ()



More information about the Beginners mailing list