Skip to content

Commit

Permalink
Only use reorder-goals for windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack authored and jutaro committed May 13, 2021
1 parent 3640c3c commit e57e954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cabal.project
Expand Up @@ -179,10 +179,6 @@ source-repository-package
typed-protocols-examples
Win32-network

-- Needed for the Windows cabal constraint solver.
max-backjumps: 10000
reorder-goals: True

constraints:
hedgehog >= 1.0
, bimap >= 0.4.0
Expand Down
5 changes: 5 additions & 0 deletions nix/haskell.nix
Expand Up @@ -29,6 +29,11 @@ let
# will run twice.
cabalProjectLocal = ''
allow-newer: terminfo:base
''
# Needed for the Windows cabal constraint solver.
+ lib.optionalString stdenv.hostPlatform.isWindows ''
max-backjumps: 10000
reorder-goals: True
'';

projectPackages = lib.attrNames (haskell-nix.haskellLib.selectProjectPackages
Expand Down

0 comments on commit e57e954

Please sign in to comment.