infib :: [Int] infib = 1 : 1 : zipWith (+) infib (tail infib) main = print $ sum $ filter even $ takeWhile (<= 4000000) infib