ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | >> IO << | Directory | System | Time | Locale | CPUTime | Random |
Module: | IO |
---|---|
Function: | hGetBuffering |
Type: | Handle -> IO BufferMode |
Description: | Computation hGetBuffering hdl returns the current buffering mode for hdl. The default buffering mode when a handle is opened is implementation-dependent and may depend on the file system object which is attached to that handle. |
Related: |
Program source: import IO main = do x <- openFile "/tmp/foo.txt" ReadMode y <-hGetBuffering x print y
Output: BlockBuffering Nothing