Stream.Log

The functions in this module let's you send data to streams on a best effort basis. If something goes wrong, the error will be silently ignored.

We don't normally encourage ignoring errors in this way, but for the explicit purpose of logging it's not always clear how you would handle an error. If you cannot log an error message to the terminal, do you try again? Try again on another stream? What if that also fails?

Only use these functions if there is no sane way to handle the event in which sending data to a stream fails!

Operations

bytes : Writable Bytes -> Bytes -> Task x {}

Send Bytes to a writable byte stream. Any potential error is ignored.

string : Writable Bytes -> String -> Task x {}

Send a String to a writable byte stream. Any potential error is ignored.

line : Writable Bytes -> String -> Task x {}

Send a String to a writable byte stream. The ´String` will end with a newline character. Any potential error is ignored.