Zulip Chat Archive
Stream: lean4
Topic: why StateRefT is defined as a macro?
Asei Inoue (Sep 28 2024 at 12:48):
The need to define it as a macro is not understood. Why not abbrev StateRefT := StateRefT' IO.RealWorld
?
import Lean
open Lean Elab Tactic
/-- info: StateRefT' IO.RealWorld State TermElabM : Type → Type -/
#guard_msgs in
#check StateRefT State TermElabM
Eric Wieser (Sep 28 2024 at 13:00):
The source says
/-! Recall that `StateRefT` is a macro that infers `ω` from the `m`. -/
Last updated: May 02 2025 at 03:31 UTC