- data LogStr
- = LS !String
- | LB !ByteString
- hPutLogStr :: Handle -> [LogStr] -> IO ()
- initHandle :: Handle -> IO ()
- hPutBuilder :: Handle -> Builder -> IO ()
Documentation
A date type to contain String
and ByteString
.
This data is exported so that format can be defined.
This would be replaced with Builder
someday.
LS !String | |
LB !ByteString |
hPutLogStr :: Handle -> [LogStr] -> IO ()Source
The hPut
function to copy a list of LogStr
to the buffer
of Handle
directly.
If Handle
is associated with a file, AppendMode
must be used.
Builder
hPutBuilder :: Handle -> Builder -> IO ()Source
The hPut
function directory to copy Builder
to the buffer.
If Handle
is associated with a file, AppendMode
must be used.
The current implementation is inefficient at this moment.
initHandle
must be called once beforehand if this function is used.
This would replace hPutLogStr
someday.