summaryrefslogtreecommitdiff
path: root/testsuite/tests/arityanal/should_compile/Arity16.hs
blob: b5a854cb4d7700595766a0a139137c5e49fed131 (plain)
1
2
3
4
5
6
7
module Prim where

map2 f [] = []
map2 f (x:xs) = f x : map2 f xs

zipWith2 f [] [] = []
zipWith2 f (a:x) (b:y) = (f a b):zipWith2 f x y