Next | Atypical Types | 46 |
fact :: (Num a) => a -> a
Ask the compiler to tell you the type of some function
Is it what you expect?
Yes? Okay then!
If not, your program almost certainly has a bug.
A real bug, not a nonsense string-the-wrong-length bug
Next | Copyright © 1999,2008 Mark Dominus |