package asai

  1. Overview
  2. Docs

Module AsaiSource

Compiler diagnostics

A diagnostic is a message for the end user, for example a compiler warning or error.

Core API

Sourcemodule Range : sig ... end

Locations and ranges.

Sourcemodule Diagnostic : sig ... end

The definition of diagnostics and some utility functions.

Sourcemodule Reporter : sig ... end

Generating and handling diagnostics using algebraic effects. The API is optimized for attaching free-form text.

Sourcemodule StructuredReporter : sig ... end

Generating and handling diagnostics using algebraic effects. The API is optimized for fully structured messages.

Sourcemodule MinimumSigs : sig ... end

Signatures that specify the minimum interface for libraries, applications, and handlers to work together.

Experimental Diagnostic Handlers

These handlers are subject to changes, but we will minimize incompatible changes between minor versions.

module Tty : sig ... end

Diagnostic display for UNIX terminals.

Sourcemodule GitHub : sig ... end

GitHub Actions workflow commands.

Internals

The internals are exposed for convenience, but they are subject to changes between minor versions.

Sourcemodule Explication : sig ... end

The definition of highlighted text suitable for rendering. You probably do not need this module unless you want to create your own diagnostic handler.

Sourcemodule Explicator : sig ... end

Turning location information into highlighted text suitable for rendering. You probably do not need this module unless you want to create your own diagnostic handler.

Sourcemodule SourceReader : sig ... end

Reading the source content. It uses memory-mapped I/O for files. You probably do not need this module unless you want to create your own diagnostic handler.

OCaml

Innovation. Community. Security.