From 9214692fa60fce959d5fc34dc84c1aa682248222 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 3 Apr 2020 19:08:35 -0700 Subject: Centralize hackage packages to deps.nix This also allowes me to make 'repl' into a universal command. This makes it much easier to work across different projects. --- repl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'repl') diff --git a/repl b/repl index 40528c7..b09bb5a 100755 --- a/repl +++ b/repl @@ -1,11 +1,4 @@ #!/usr/bin/env bash set -ex -prefix=$(echo $PWD | sed -e "s|^$BIZ_ROOT/*||" -e "s|/|.|g") -if [[ "$prefix" == "" ]] -then - target="$1" -else - target="$prefix.$1" -fi -nix run -f $BIZ_ROOT/default.nix "$target.env" \ +nix run -f $BIZ_ROOT/default.nix "repl" \ -c ghci -i$BIZ_ROOT -ghci-script "$BIZ_ROOT/.ghci" -- cgit v1.2.3