File.file.read: def of snap@1.4.0.0 Import: import snap@1.4.0.0/src/file.bend as File Lines 93-97 of snap@1.4.0.0/src/file.bend: https://jend.leeeet.dev/read.txt?path=snap@1.4.0.0/src/file.bend&start_line=93&end_line=97 import Base # a file's text, or None when it cannot be opened def file.read(path: String) -> IO(Maybe<&2, String>): do IO>: res : Result<&1, &1, U32 & String, File> <- File.open(path, "r") file.read.opened(res) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.open 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=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/src/file.bend&name=file.read.opened