ref: b4a7a0d4c04ad0fb96d0b279d35da2658d58a0e1 dir: /Example.hs/
module Example(fac, main) where fac :: Int -> Int fac 0 = 1 fac n = n * fac(n - 1) main :: IO () main = do let rs = map fac [1,2,3,10] putStrLn "Some factorials" print rs