Skip to content

Commit

Permalink
always force hpack
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 24, 2023
1 parent a43dfde commit 81dde4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let

allModules = hixModules ++ userModules;

# TODO maybe this could include gen-overrides so the default systems may depend on it
onlySystemsConfig = m:
if isFunction m
then a@{util, ...}: onlySystemsConfig (m a)
Expand Down
9 changes: 4 additions & 5 deletions lib/hpack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ in pkgs.writeScript "hpack.zsh" ''
run()
{
${config.internal.basicGhc.hpack}/bin/hpack ${if verbose then "" else "1>/dev/null"}
${config.internal.basicGhc.hpack}/bin/hpack --force ${if verbose then "" else "1>/dev/null"}
}
regular()
{
local name=$1 rel=$2
dir="$base/$rel"
local name=$1 rel=$2 dir="$base/$rel"
pushd $dir
info "$dir"
if [[ -f package.yaml ]]
Expand All @@ -46,10 +45,10 @@ in pkgs.writeScript "hpack.zsh" ''
synthetic()
{
local name=$1 rel=$2 file=$3
dir="$base/$rel"
local dir="$base/$rel"
pushd $dir
info "$dir"
remove="$dir/package.yaml"
local remove="$dir/package.yaml"
cp $file package.yaml
error() {
cat $file
Expand Down

0 comments on commit 81dde4e

Please sign in to comment.