silnia::Integer->Integersilnia n |n==0 1 |otherwise silnia(n-1)*n main = print(silnia 6)
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:4:8: parse error on input `|'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!