SafeFlags23.hs 266 Bytes
Newer Older
1 2
{-# OPTIONS_GHC -fwarn-unsafe -Werror #-}
-- | Basic test to see if Safe warning flags compile
Brian Wignall's avatar
Brian Wignall committed
3
-- Warn if module is inferred unsafe
4 5 6 7 8 9 10 11
-- In this test the warning _should_ fire and cause a compile fail
module SafeFlags22 where

import System.IO.Unsafe

f :: Int
f = 1