summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered/UnsafeWarn04.hs
blob: d8e8b84fa592762d079153c24931848c05b070da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_GHC -fwarn-trustworthy-safe #-}
{-# OPTIONS_GHC -fwarn-unsafe #-}

-- | Trivial Unsafe Module
module UnsafeWarn04 where

import System.IO.Unsafe

f :: IO a -> a
f = unsafePerformIO