summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/RepPolyTupleSection.hs
blob: 9b0087ae38785c048d13fd9e9e021a6a0cd1aa21 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnboxedTuples #-}

module RepPolyTupleSection where

import GHC.Exts

foo :: forall (r :: RuntimeRep) (a :: TYPE r). a -> (# Int#, a #)
foo = (# 3#, #)