add NOINLINE pragmas for stdin/stdout/stderr
authorSimon Marlow <marlowsd@gmail.com>
Wed, 21 Apr 2010 08:20:41 +0000 (08:20 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 21 Apr 2010 08:20:41 +0000 (08:20 +0000)
GHC/IO/Handle/FD.hs

index 6922732..227816b 100644 (file)
@@ -51,6 +51,7 @@ import qualified System.Posix.Internals as Posix
 
 -- | A handle managing input from the Haskell program's standard input channel.
 stdin :: Handle
+{-# NOINLINE stdin #-}
 stdin = unsafePerformIO $ do
    -- ToDo: acquire lock
    setBinaryMode FD.stdin
@@ -60,6 +61,7 @@ stdin = unsafePerformIO $ do
 
 -- | A handle managing output to the Haskell program's standard output channel.
 stdout :: Handle
+{-# NOINLINE stdout #-}
 stdout = unsafePerformIO $ do
    -- ToDo: acquire lock
    setBinaryMode FD.stdout
@@ -69,6 +71,7 @@ stdout = unsafePerformIO $ do
 
 -- | A handle managing output to the Haskell program's standard error channel.
 stderr :: Handle
+{-# NOINLINE stderr #-}
 stderr = unsafePerformIO $ do
     -- ToDo: acquire lock
    setBinaryMode FD.stderr