Lint.text.answer: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lint.bend as Lint Lines 29-37 of bolt@1.27.0.0/src/lint.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lint.bend&start_line=29&end_line=37 import Base import bolt@1.27.0.0/src/lint/world.bend as W import bolt@1.27.0.0/src/lsp/files/disk.bend as Disk # a path's text as an answer: a directory has none, and a file is read def text.answer(dir: Bool, path: String) -> IO(W.Answer): match dir: case True{}: IO.pure(W.Answer, W.Directory{}) case False{}: do IO: mm : Maybe<&2, String> <- Disk.read(path) return read.answer(mm) Uses (9): 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.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lint/world.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lint.bend&name=read.answer https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/files/disk.bend&name=read