summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/should_run/2881.hs
blob: 94ecfa6a00b9c8619b02f185c1ae339ee0b037ae (plain)
1
2
3
4
5
6
7
8
import Data.Word
fib :: Word -> Word
fib 0 = 1
fib 1 = 1
fib n = l + r 
  where l = fib (n-2); r = fib (n-1)

main = print (fib 20)