BufWrite

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

BufWrite

Synopsis

- data BufHandle = BufHandle !(Ptr Word8) !FastMutInt Handle
- newBufHandle :: Handle -> IO BufHandle
- bPutChar :: BufHandle -> Char -> IO ()
- bPutStr :: BufHandle -> String -> IO ()
- bPutFS :: BufHandle -> FastString -> IO ()
- bPutFZS :: BufHandle -> FastZString -> IO ()
- bPutLitString :: BufHandle -> LitString -> IO ()
- bPutReplicate :: BufHandle -> Int -> Char -> IO ()
- bFlush :: BufHandle -> IO ()

# Documentation

data BufHandle #

Constructors

BufHandle !(Ptr Word8) !FastMutInt Handle |

newBufHandle :: Handle -> IO BufHandle #

bPutChar :: BufHandle -> Char -> IO () #

bPutStr :: BufHandle -> String -> IO () #

bPutFS :: BufHandle -> FastString -> IO () #

bPutFZS :: BufHandle -> FastZString -> IO () #

bPutLitString :: BufHandle -> LitString -> IO () #

bPutReplicate :: BufHandle -> Int -> Char -> IO () #

Replicate an 8-bit character

bFlush :: BufHandle -> IO () #