summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/flags/SafeFlags26.hs
blob: 45b65f3d9e95e4d1fa2548bdea6379e5e7dc5512 (plain)
1
2
3
4
5
6
7
8
9
{-# OPTIONS_GHC -fwarn-safe -Werror #-}
-- | Basic test to see if Safe warning flags compile
-- Warn if module is inferred safe
-- In this test the warning _should_ fire and cause a compile fail
module SafeFlags26 where

f :: Int
f = 1