Documentation

Lean.Server.Utils

def IO.throwServerError {α : Type} (err : String) :
IO α
Instances For

    Chains two streams by creating a new stream s.t. writing to it just writes to a but reading from it also duplicates the read output into b, c.f. a | tee b on Unix. NB: if a is written to but this stream is never read from, the output will not be duplicated. Use this if you only care about the data that was actually read.

    Instances For

      Like tee a | b on Unix. See chainOut.

      Instances For

        Prefixes all written outputs with pre.

        Instances For
          Instances For

            Duplicates an I/O stream to a log file fName in LEAN_SERVER_LOG_DIR if that envvar is set.

            Instances For

              Returns the document contents with the change applied.

              Instances For

                Returns the document contents with all changes applied.

                Instances For