mysum = foldl (+) 0 main = print (mysum [1..100000] + mysum [1..100000])
Standard input is empty
10000100000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!