main = do print (3 `div` 2) print (3 `div` 0)
Standard input is empty
1
prog: divide by zero
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!