blob: 175365c17cdd1d399b8e3d841c0172c6d958b011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE Safe #-}
-- | Import unsafe module System.IO.Unsafe to make sure it fails
module Main where
import System.IO.Unsafe
f :: Int
f = unsafePerformIO $ putStrLn "What kind of swallow?" >> return 2
main :: IO ()
main = putStrLn $ "X is: " ++ show f
|