ghc-mod/test/data/non-exported/Fib.hs
2015-03-05 17:35:28 +01:00

9 lines
149 B
Haskell

{-# LANGUAGE TemplateHaskell #-} -- for HscInterpreted
module Fib () where
fib :: Int -> Int
fib 0 = 0
fib 1 = 1
fib n = fib (n - 1) + fib (n - 2)