main
= print (faktorial
5)
faktorial n | n==0 = 1
| True
= seq (printBezIO
$ "vichisljaem faktorial! " ++ show n
) (n*faktorial (n-1))
printBezIO
= unsafePerformIO
. print
aW1wb3J0IFN5c3RlbS5JTy5VbnNhZmUKCm1haW4gPSBwcmludCAoZmFrdG9yaWFsIDUpCgpmYWt0b3JpYWwgbgl8IG49PTAgPSAxCgkJCXwgVHJ1ZSA9IHNlcSAocHJpbnRCZXpJTyAkICJ2aWNoaXNsamFlbSBmYWt0b3JpYWwhICIgKysgc2hvdyBuKQoJCQkJCQkgKG4qZmFrdG9yaWFsIChuLTEpKQoJCQkKcHJpbnRCZXpJTyA9IHVuc2FmZVBlcmZvcm1JTyAuIHByaW50