summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered/TrustworthySafe03.hs
blob: fe3e27ef5f2eaa2b0bfb94e13bf54ac229bcc246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -fwarn-trustworthy-safe #-} -- temp broken by 452d6aa95

-- | This module is marked trustworthy but should be inferable as -XSafe.
-- Warning enabled through `-W`.
module TrustworthySafe03 where

g :: Int
g = 1