Next | Atypical Typing | 42 |
fact :: (Num a) => a -> a
If you ask the compiler what for the type of some function, you better see 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
continued...
Next | Copyright © 1999,2008 Mark Dominus |