add x y = x + y main = do print $ add 1 2 print $ add 1.0 2
Standard input is empty
3 3.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!