14e60e96e29b2cf56cc8e5ceedba8ff5d511679c
[ghc-hetmet.git] / ghc / tests / deSugar / should_compile / ds038.hs
1 --!!! Jon Hill reported a bug in desugaring this in 0.09
2 --!!! (recursive with n+k patts)
3 --
4 module ShouldSucceed where
5
6 takeList :: Int -> [a] -> [a]
7 takeList 0     _      = []
8 takeList (n+1) []     = []
9 takeList (n+1) (x:xs) = x : takeList n xs