Prime -> 2010
[haskell-report.git] / report / lib-hdrs / IO1.hs
1 hFileSize :: Handle -> IO Integer
2 hIsEOF :: Handle -> IO Bool
3 isEOF :: IO Bool
4 isEOF = hIsEOF stdin
5
6 hSetBuffering :: Handle -> BufferMode -> IO ()
7 hGetBuffering :: Handle -> IO BufferMode
8 hFlush :: Handle -> IO ()
9 hGetPosn :: Handle -> IO HandlePosn
10 hSetPosn :: HandlePosn -> IO ()
11 hSeek :: Handle -> SeekMode -> Integer -> IO ()
12
13 hWaitForInput :: Handle -> Int -> IO Bool
14 hReady :: Handle -> IO Bool
15 hReady h = hWaitForInput h 0
16 hGetChar :: Handle -> IO Char
17 hGetLine :: Handle -> IO String
18 hLookAhead :: Handle -> IO Char
19 hGetContents :: Handle -> IO String
20 hPutChar :: Handle -> Char -> IO ()
21 hPutStr :: Handle -> String -> IO ()
22 hPutStrLn :: Handle -> String -> IO ()
23 hPrint :: Show a => Handle -> a -> IO ()
24
25 hIsOpen :: Handle -> IO Bool
26 hIsClosed :: Handle -> IO Bool
27 hIsReadable :: Handle -> IO Bool
28 hIsWritable :: Handle -> IO Bool
29 hIsSeekable :: Handle -> IO Bool
30
31 isAlreadyExistsError :: IOError -> Bool
32 isDoesNotExistError :: IOError -> Bool
33 isAlreadyInUseError :: IOError -> Bool
34 isFullError :: IOError -> Bool
35 isEOFError :: IOError -> Bool
36 isIllegalOperation :: IOError -> Bool
37 isPermissionError :: IOError -> Bool
38 isUserError :: IOError -> Bool
39
40 ioeGetErrorString :: IOError -> String
41 ioeGetHandle :: IOError -> Maybe Handle
42 ioeGetFileName :: IOError -> Maybe FilePath
43
44 try :: IO a -> IO (Either IOError a)
45 bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
46 bracket_ :: IO a -> (a -> IO b) -> IO c -> IO c