ghc-mod/test/data/ghc-mod-check/Data/Foo.hs

12 lines
187 B
Haskell
Raw Normal View History

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