Fix dialyzer warning on IO.inspect :label
Module
IO
22 changes across 16 versions
Changes by version
Passing :all to IO.read/2 and IO.binread/2 is deprecated, pass :eof instead
Raise when using IO.binwrite/2 on terminated device (mirroring IO.write/2)
Support Macro.Env and keywords as stacktrace definitions in IO.warn/2
Add IO.ANSI.syntax_colors/0 and related configuration to be shared across IEx and dbg
Allow :eof to be given as limit to IO.getn/2
:all on IO.getn is deprecated in favor of :eof
Add IO.stream/0 and IO.binstream/0 which default to STDIO with line orientation
Add :label option to IO.inspect/2 to help distinguish multiple IO.inspect/2 calls.
Add IO.warn/2 that will print a warning message with stacktrace and notify the compiler a warning was printed (in case --warnings-as-errors was enabled)
Add color related functions to IO.ANSI
Support fenced code blocks on IO.ANSI.Docs
Read 4K blocks instead of lines in IO.binread/2. This fixes a bug where CRLF were being ignored and is also going to improve performance
Make IO.ANSI.Docs readable on white background
Fix IO.ANSI.Docs handling of *, **, _ where they would be activated in the middle of words
IO.ANSI.terminal? is deprecated in favor of IO.ANSI.enabled?
IO.ANSI.escape/2 and IO.ANSI.escape_fragment/2 is deprecated in favor of IO.ANSI.format/2 and IO.ANSI.format_fragment/2
Add IO.(bin)read(device, :all)
Add specs and allow some IO APIs to receive any data that implements String.Chars
Added support to specifying a number of bytes to stream to IO.stream, IO.binstream, File.stream! and File.binstream!
IO.stream(device) and IO.binstream(device) are deprecated in favor of IO.stream(device, :line) and IO.binstream(device, :line)
IO functions now only accept iolists as arguments