Lynx.Lean (Lynx v0.2.0)

Copy Markdown View Source

Lean source with its original file, span, and indentation.

Import this module to use ~LEAN. Lynx.Laws and Lynx.Case import it automatically. The resulting value can be stored in variables or attributes.

Summary

Functions

Builds Lean source from a literal inline string or heredoc, without modifiers.

Types

t()

@type t() :: %Lynx.Lean{
  file: String.t(),
  indentation: non_neg_integer(),
  source: String.t(),
  span: pos_integer() | {pos_integer(), pos_integer()}
}

Functions

sigil_LEAN(arg1, arg2)

(macro)

Builds Lean source from a literal inline string or heredoc, without modifiers.