hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit acacd413b72f3291216be4035e91d83b34c22c77
parent eff477a0c39f20c83f1970f5332b864c51e7b913
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 26 Feb 2021 15:18:03 -0500

main.ha: minor tweaks

Diffstat:
Mmain.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.ha b/main.ha @@ -14,9 +14,11 @@ export fn main() void = { err: module::error => fmt::fatal("Error scanning module: {}", module::errstr(err)), }; + let hash = hex::encode(ver.hash); + fmt::println("{}: {}", hash, os::args[1]); for (let i = 0z; i < len(ver.inputs); i += 1) { let hash = hex::encode(ver.inputs[i].hash); defer free(hash); - fmt::println("in: {}\t{}", ver.inputs[i].path as str, hash); + fmt::println("\t {} {}", hash, ver.inputs[i].path as str); }; };