shithub: MicroHs

ref: 0a6f76bc5c3e2d48b503734bc7ea7ed39292d182
dir: /Example.hs/

View raw version
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