summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_compile/T16449_1.hs
blob: b1ec71efef41b2db2dfdacc6b77a432db057548e (plain)
1
2
3
4
5
6
7
8
module T16449_1 where

import Data.Bits (setBit)

f :: Int
f = foldl setter 0 $ zip [0..] [()]
  where
    setter v (ix, _) = setBit v ix