summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T15673.hs
blob: 30baa37d3d3ee0fddbfb702e02ebae372d00b06b (plain)
1
2
3
4
5
6
module T14573 where

import Data.Bits (shift)

badOne :: [Int] -> Integer     -- replace Integer by Int and all is good!
badOne is = sum $ zipWith (\n _->shift 1 n) [0..] is