summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/Check02_A.hs
blob: d43dab727ad446be302c94b3f2b22768f0bb123e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE Trustworthy #-}
module Check02_A (
        trace
    ) where

import qualified Debug.Trace as D
import qualified Data.ByteString.Lazy.Char8 as BS

-- | Allowed declasification
trace :: String -> a -> a
trace s = D.trace $ s ++ show a3

a3 :: BS.ByteString
a3 = BS.take 3 $ BS.repeat 'a'