summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered/Mixed01.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/safeInfered/Mixed01.hs')
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/Mixed01.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeInfered/Mixed01.hs b/testsuite/tests/safeHaskell/safeInfered/Mixed01.hs
new file mode 100644
index 0000000000..ab3497c6ab
--- /dev/null
+++ b/testsuite/tests/safeHaskell/safeInfered/Mixed01.hs
@@ -0,0 +1,9 @@
+-- | Should fail compilation because safe imports aren't enabled
+-- not because of trying to import an unsafe module
+module Mixed01 where
+
+import safe System.IO.Unsafe
+
+f :: Int
+f = 1
+