Typprüfung/Inferenz (Beispiel)

next :: Integer -> Integer
next x = x + 1

twice :: (a -> a) -> (a -> a)
twice f x = f (f x)

main = print $ twice twice twice twice next 0
Fragen:



Johannes Waldmann 2008-01-24