fork download
  1. import Data.ByteString.Lazy as BS
  2. import System.IO
  3.  
  4. main = do
  5. h <- openFile "/dev/zero" ReadMode
  6. s <- BS.hGetContents h
  7. print $ BS.length $ BS.take 40000000000 s
  8. hClose h
Success #stdin #stdout 5.92s 4660KB
stdin
Standard input is empty
stdout
40000000000