summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail206.hs
blob: 95b0eba359775a9b3c8ec343b96082ee80c8cf07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE TupleSections, UnboxedTuples #-}
module ShouldCompile where

a :: Bool -> (Int, Bool)
a = ( , True)

b :: Int -> Bool -> (Int, Bool)
b = (1, )

c :: a -> (a, Bool)
c = (True || False, )

d :: Bool -> (#Int, Bool#)
d = (# , True#)

e :: Int -> Bool -> (#Int, Bool#)
e = (#1, #)

f :: a -> (#a, Bool#)
f = (#True || False, #)