summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs')
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs b/testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs
new file mode 100644
index 0000000000..6f4db5db79
--- /dev/null
+++ b/testsuite/tests/safeHaskell/safeInfered/SafeInfered04_A.hs
@@ -0,0 +1,8 @@
+{-# OPTIONS_GHC -fenable-rewrite-rules #-}
+-- | Safe as while it enables rules it doesn't define any. UnsafeInfered05 is a
+-- test case for when rules are defined and it should be unsafe
+module SafeInfered04_A where
+
+f :: Int
+f = 1
+