def laid.sum

ezx@1.11.0.0 · src/pkg/pkg.bend:1103

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base
import ezx@1.11.0.0/src/share/sha.bend as Sha

1103# a laid file weighed: its path and the sha256 of its text. This is what a
1104# plan's reader would compute from the files a `Lay` writes.
1105def laid.sum(src: Source) -> Item:
1106  Source{at, +text} = src
1107  Item{at, Sha.hex(text)}

Uses (3)

Used by (1)