diff options
Diffstat (limited to 'testsuite/tests/safeHaskell/safeLanguage/SafeLang12_A.hs')
-rw-r--r-- | testsuite/tests/safeHaskell/safeLanguage/SafeLang12_A.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeLanguage/SafeLang12_A.hs b/testsuite/tests/safeHaskell/safeLanguage/SafeLang12_A.hs new file mode 100644 index 0000000000..3122859b59 --- /dev/null +++ b/testsuite/tests/safeHaskell/safeLanguage/SafeLang12_A.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE Safe #-} +module SafeLang12_A ( A ) where + +data A = A1 | A2 + +instance Show A where + show A1 = "A1 is secret!" + show A2 = "A2 is secret!" + |