ref: a9ac58af31c1f793739da9ac9182438b107f184a 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