summaryrefslogtreecommitdiff
path: root/dhall/compare.fish
blob: 154f06a41ea306b8b89a1498d6621511fe8942cb (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env fish

set dhall_hs_path ../dhall
set dhall_hs $dhall_hs_path/.stack-work/install/**/bin/dhall
set dhall_rs target/debug/dhall
set input_file $argv[1]
diff -u \
    --label "dhall-hs < $input_file" (eval $dhall_hs < $input_file ^&1 | psub) \
    --label "dhall-rs < $input_file" (eval $dhall_rs < $input_file ^&1 | psub)