summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_compile/debug.hs
blob: dfb6d601d43223cae38f40d2869cdc45a7a915a1 (plain)
1
2
3
4
5
6
module Main where
fib :: Int -> Int
fib 0 = 1 -- GHC should merge the blocks
fib 1 = 1 -- of these two alternatives
fib n = fib (n-1) + fib (n-2)
main = print $ fib 10