0 then n * factorial (n - 1) else error "No factorial for negative numbers"
-- No tutorial não e
factorial n = if n > 0 then n * factorial (n - 1) else error "No factorial for negative numbers"
factorial n = if n > 0 then n * factorial (n - 1) else error "No factorial for negative numbers"