summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/safeHaskell/check/CheckA.hs
blob: 80f9ae4ee054129b4ab4d967cbc277fd541327c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE Trustworthy #-}
module CheckA (
        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'