Add scripts for hacking

This commit is contained in:
Robert Hensing 2019-06-23 21:33:01 +02:00
parent 36e48776cf
commit c2bdf8e047
6 changed files with 36 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ result-*
dist/ dist/
dist-newstyle/ dist-newstyle/
cabal.project.local

6
build Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash
# Build the Haskell package via cabal, outside Nix
cabal new-build --write-ghc-environment-files=never

1
cabal.project Normal file
View File

@ -0,0 +1 @@
packages: .

6
repl Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash
# A Haskell REPL for hacking on the Haskell code
cabal new-repl --write-ghc-environment-files=never

15
run-arion Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell ./shell.nix
# For quick manual testing of a hacked arion
# NB: Only works inside the project directory
cabal \
new-run \
--write-ghc-environment-files=never \
:pkg:arion-compose:exe:arion \
-- \
"$@" \
;

6
run-arion-via-nix Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# For manual testing of a hacked arion built via Nix.
# Works when called from outside the project directory.
exec nix run -f "$(dirname ${BASH_SOURCE[0]})" arion -c arion "$@"