Spin.owed: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/spin.bend as Spin Lines 50-57 of ezx@1.11.0.0/src/share/spin.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/spin.bend&start_line=50&end_line=57 import Base # a spinner that never started still owes its line, unless the plain path # already printed it and left the message empty def owed(empty: Bool, +msg: String) -> IO(Unit): match empty: case True{}: IO.pure(Unit, Unit{}) case False{}: IO.print_err(msg) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.print_err https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit