Minilib.Common.IOEx
Defined in minilib-common@0.11.0
Extensions for Std::IO.
Values
namespace Minilib.Common.IOEx
fflush
Type: [m : Minilib.Monad.IO::MonadIOFail] Std::IO::IOHandle -> m ()
Flushes a file stream. For details, see Linux manual page for fflush().
NOTE: Std::IO::flush may be a better choice.
set_unbuffered_mode
Type: [m : Minilib.Monad.IO::MonadIO] Std::IO::IOHandle -> m ()
Sets IOHandle to unbuffered mode. For detials, see Linux manual page for setbuf().
NOTE: When a fix program is invoked by run_with_stream(),
then the stdout and stderr becomes not a TTY but a file stream.
So the stdout becomes block-buffered. The stderr also seems to be block-buffered.