Skip to content

Commit 507cded

Browse files
authored
Fix building HLS with old versions of GHC (#1780)
Exclude `retrie` that does not actually work with older versions of GHC. See facebookincubator/retrie#51
1 parent 057f9bf commit 507cded

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/hackage-quirks.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ in [
6060
+ lib.optionalString (__elem config.compiler-nix-name ["ghc921" "ghc922" "ghc923" "ghc924"]) ''
6161
package haskell-language-server
6262
flags: -haddockcomments
63+
''
64+
# Exclude `retrie` that does not actually work with older versions of GHC.
65+
# TODO Remove this once https://github.com/facebookincubator/retrie/pull/51 is fixed somehow
66+
+ lib.optionalString (__elem config.compiler-nix-name ["ghc865" "ghc884" "ghc8105" "ghc8106" "ghc8107" "ghc901" "ghc902"]) ''
67+
constraints: retrie <1.2.1
6368
'');
6469
}
6570
)

0 commit comments

Comments
 (0)