Built with Alectryon. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.
Hover-Settings: Show types: Show goals:
-- From a wechat group question
import Lean

open Lean Elab Command Meta Tactic

syntax "currentModule" : term
elab_rules : term
| `(currentModule) => do
  return Lean.mkStrLit s!"{ (← getEnv).header.mainModule }"

def main : IO Unit := do
  IO.println s!"{currentModule}"

[anonymous]
main: IO Unit
main