Next Atypical Types 45

Type inference

fact ::(Num a) => a -> a
n ::(Num a) => a

        fact 0 = 1
        fact n = n * fact(n-1)

"Okay, everything checks out!"

        fact :: (Num a) => a -> a


Next Copyright © 1999,2008 Mark Dominus