Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 9e22c64

Browse files
authored
Merge pull request #2 from expipiplus1/hie-bios
Add shebangs to hie-bios wrappers
2 parents 94eaa52 + 4101608 commit 9e22c64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hie-bios/wrappers/bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
fullname=$(bazel query $1)
1+
#!/usr/bin/env bash
2+
fullname=$(bazel query "$1")
23
attr=$(bazel query "kind(haskell_*, attr('srcs', $fullname, ${fullname//:*/}:*))")
34
bazel build "$attr@repl" --experimental_show_artifacts 2>&1 | sed -ne '/>>>/ s/^>>>\(.*\)$/\1/ p' | xargs tail -1
45

hie-bios/wrappers/cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#!/usr/bin/env bash
12
if [ "$1" == "--interactive" ]; then
23
pwd
34
echo "$@"
45
else
5-
ghc $@
6+
ghc "$@"
67
fi

0 commit comments

Comments
 (0)