summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/flags/SafeFlags26.hs
blob: faf116c01fe5d4cd80a63d0de94cdaa57df39522 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE Haskell2010 #-}
{-# 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