ref: 23c4e98fd9dea207b1c62e46e2af56f58dca3861
dir: /Example.hs/
module Example(module Example) 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