summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T14272.hs
blob: d520c068f5e4a9a67abd5ba20d14849ba158ebb4 (plain)
1
2
3
4
5
6
7
import Data.Bits (bit)

main :: IO ()
main = putStrLn (show (f undefined))

f :: [Int] -> Int
f = sum . zipWith ((+) . bit) [0..] . map undefined . scanl undefined undefined