summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/T5626.hs
blob: 93afcf7c6debfd3972f3e419f85403f890ef6751 (plain)
1
2
3
4
5
6
7
8
9
10
11
module Main where

wrap x = [x]!!0

f :: [Int] -> a
f a = foldr (\b -> \c -> c) (undefined ()) (a ++ a) 0

main = do
  print $ (f [] :: String)
  print $ wrap $ (f [] :: Int)
  print $ wrap $ (f [] :: (Int, Int, Int, Int))