def append

cswap-bend-cli@0.1.0.0 · fs/write.bend:92

import cswap-bend-cli@0.1.0.0/fs/write.bend as Write
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs

92# Append `data` to a file, creating it (a log line at a time).
93def append(path: String, data: String) -> IO(Fs.Res(Unit)):
94  IO.bind(Fs.Res(File), Fs.Res(Unit), File.open(path, "a"), r => put.write(data, r))

Uses (8)

Used by (3)