diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T17817.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T17817.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T17817.hs b/testsuite/tests/typecheck/should_fail/T17817.hs new file mode 100644 index 0000000000..b87178f909 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T17817.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE PolyKinds #-} +{-# LANGUAGE UnboxedTuples #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE MagicHash #-} +module Bug where + +import GHC.Exts ( TYPE, RuntimeRep(BoxedRep), Levity + , Weak#, State#, RealWorld, mkWeak# + ) + +primop :: forall (l :: Levity) (a :: TYPE ('BoxedRep l)) b c. + a -> b -> (State# RealWorld -> (# State# RealWorld, c #)) + -> State# RealWorld -> (# State# RealWorld, Weak# b #) +primop = mkWeak# |