packages feed

MicroHs-0.17.4.0 / tests / Fac.hs

-- Simple testmodule Fac(module Fac) wherefac :: Int -> Int  -- ignoredfac n =  case n == 0 of    False -> n * fac (n - 1)    True  -> 1nfib :: Int -> Int   -- ignorednfib n =  case n < 2 of    False -> nfib (n - 1) + nfib (n - 2) + 1    True  -> 1res :: (Int, Int)res = (fac 10, nfib 30)main :: IO ()main = do  print $ fac 6  print $ fst res + snd res