summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/stranal/should_compile/fact.hs
blob: 9f23f9021ef626ed13afad76ebf5027011565ab4 (plain)
1
2
3
module Test where
fact :: Int -> Int
fact n = if n==0 then 2 else (fact n) * n