ghc-mod/test/data/ghc-mod-check/lib/Data/Foo.hs
2015-03-05 17:35:28 +01:00

12 lines
187 B
Haskell

module Data.Foo where
foo :: Int
foo = undefined
fibonacci :: Int -> Integer
fibonacci n = fib 1 0 1
where
fib m x y
| n == m = y
| otherwise = fib (m+1) y (x + y)