Lazy IO

(das ist ein sehr dunkles Kapitel)

import System.IO
main = do
    h <- openFile "Lazy.hs" ReadMode
    cs <- hGetContents h
    hClose h
    putStr cs



Johannes Waldmann 2010-01-25