import Data.ByteString.Lazy as BSimport System.IO main = do h <- openFile "/dev/zero" ReadMode s <- BS.hGetContents h print $ BS.sum $ BS.take 40000000000 s hClose h
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:7:12: Not in scope: `BS.sum'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!