System.IO

The IO monad

data IO a

Files and handles

type FilePath
data Handle

Standard handles

Opening and closing files

Opening files

data IOMode

Closing files

Special cases

File locking

Operations on handles

Determining and changing the size of a file

Detecting the end of input

Buffering operations

data BufferMode

Repositioning handles

data HandlePosn
data SeekMode

Handle properties

Terminal operations (not portable: GHC/Hugs only)

Showing handle state (not portable: GHC only)

Text input and output

Text input

Text output

Special cases for standard input and output

Binary input and output

Temporary files