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

-- | Trivial Unsafe Module
module UnsafeWarn01 where

import System.IO.Unsafe

f :: IO a -> a
f = unsafePerformIO