[Haskell] Silent error

miphis at meta.ua miphis at meta.ua
Mon Jan 21 00:17:17 CET 2013


The program looks like this:

--***********************
factorial :: Int->Int
factorial n = product [1..n]

main = do
        print $ factorial 50
--***********************

And that yields "0" (no errors). Is it a bug or feature? :)

______________________________
Акция! Скидка до - 50% на колготы зимних коллекций в Линии магазинов EVA!
http://go.meta.ua/eva_colgotes 




More information about the Haskell mailing list