diff options
Diffstat (limited to 'testsuite/tests/rep-poly/RepPolyRule1.hs')
-rw-r--r-- | testsuite/tests/rep-poly/RepPolyRule1.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/RepPolyRule1.hs b/testsuite/tests/rep-poly/RepPolyRule1.hs new file mode 100644 index 0000000000..9bf156ac6a --- /dev/null +++ b/testsuite/tests/rep-poly/RepPolyRule1.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE DataKinds, PolyKinds #-} + +module RepPolyRule1 where + +import GHC.Exts + +f :: forall rep (a :: TYPE rep). a -> a +f = undefined +{-# NOINLINE f #-} + +{-# RULES "f_id" forall (x :: (a :: TYPE rep)). f x = x #-} |