summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/unsafeLibs/BadImport09.hs
blob: 90d1c49090a170e7d1001d8c01dc46c901563920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE Safe #-}
-- | Import unsafe module Control.ST to make sure it fails
module Main where

import Control.Monad.ST.Lazy.Unsafe

f :: Int
f = 2

main :: IO ()
main = putStrLn $ "X is: " ++ show f