summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/Check01_B.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/check/Check01_B.hs')
-rw-r--r--testsuite/tests/safeHaskell/check/Check01_B.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/check/Check01_B.hs b/testsuite/tests/safeHaskell/check/Check01_B.hs
new file mode 100644
index 0000000000..b584e51b97
--- /dev/null
+++ b/testsuite/tests/safeHaskell/check/Check01_B.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE Safe #-}
+
+-- Since Safe we require base package be trusted to compile
+module Check01_B where
+
+import Check01_A
+
+mainM :: Int -> Int
+mainM n = trace "Allowed Leak" $ n * 2
+