def reimport.hit
import ezx@1.11.0.0/src/ledger/upgrade.bend as Upgradeimport Base
181# an empty hash names no package, so it rewrites nothing
182def reimport.hit(empty: Bool, +line: String, +old: String) -> Bool:
183 match empty:
184 case True{}:
185 False{}
186 case False{}:
187 String.starts_with(line, reimport.head(old))