ref: 7b827493e7bb7992068a2f9ded548b6bee83d5e6
dir: /Example.hs/
module Example(main) where
import Prelude
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"
putStrLn $ showList showInt rs