summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_compile/tc145.hs
blob: a11c5b93e528513c2a2acdcf5dfea2dc1db61a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE ImplicitParams, UnboxedTuples #-}

-- Test two slightly exotic things about type signatures

module ShouldCompile where

	-- The for-all hoisting should hoist the
	-- implicit parameter to give
	-- 	r :: (?param::a) => a
    r :: Int -> ((?param :: a) => a)
    r = error "urk"

	-- The unboxed tuple is OK because it is
	-- used on the right hand end of an arrow	
    type T = (# Int, Int #)

    f :: Int -> T
    f = error "urk"