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