3 Aug
2006
3 Aug
'06
8:24 p.m.
Hi
number n = case n of 0 -> Zero _ -> Succ(number(n-1))
Looks fine to me, what exactly doesn't work? Type error, parse error? Gives the wrong result? For what values? You might also get more success if you email haskell-cafe -AT- haskell.org, which is for general Haskell stuff and gets a lot more traffic and readers than hugs-users. Either than or the Haskell IRC channel for instant answers. Thanks Neil