module Main where main = let a = [x | x <- [1..1000], x `mod` 3 == 0, x `mod` 5 == 0] in sum a do putStrLn b
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:5:1: parse error on input `do'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!