base-4.20.2.0: Core data structures and operations

Copyright | (c) The University of Glasgow 2017
License | see libraries/base/LICENSE
Maintainer | libraries@haskell.org
Stability | internal
Portability | non-portable
Safe Haskell | Safe
Language | Haskell2010

GHC.IO.StdHandles

Description

This model abstracts away the platform specific handles that can be toggled through the RTS.

# Documentation

stdin :: Handle Source #

stdout :: Handle Source #

stderr :: Handle Source #

openFile :: FilePath -> IOMode -> IO Handle Source #

openBinaryFile :: FilePath -> IOMode -> IO Handle Source #

openFileBlocking :: FilePath -> IOMode -> IO Handle Source #

withFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r Source #

withBinaryFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r Source #

withFileBlocking :: FilePath -> IOMode -> (Handle -> IO r) -> IO r Source #