|
41 | 41 | }
|
42 | 42 | )
|
43 | 43 |
|
44 |
| - # TODO remove this when `dependent-sum-0.7.1.0` constraint on `some` has been updated. |
45 |
| - # See https://github.com/haskell/haskell-language-server/issues/2969 |
46 |
| - # and https://github.com/obsidiansystems/dependent-sum/issues/71 |
47 | 44 | ({config, lib, pkgs, ...}:
|
48 | 45 | { _file = "haskell.nix/overlays/hackage-quirks.nix#haskell-language-server"; } //
|
49 | 46 | lib.mkIf (config.name == "haskell-language-server") {
|
| 47 | + # TODO remove this when `dependent-sum-0.7.1.0` constraint on `some` has been updated. |
| 48 | + # See https://github.com/haskell/haskell-language-server/issues/2969 |
| 49 | + # and https://github.com/obsidiansystems/dependent-sum/issues/71 |
50 | 50 | cabalProject = lib.mkDefault (''
|
51 | 51 | packages: .
|
52 | 52 | constraints: dependent-sum >=0.7.1.0
|
53 | 53 | ''
|
54 |
| - # TODO remove once these two plugins have been updated in hackage |
| 54 | + # TODO remove once these the plugins have been updated in hackage |
55 | 55 | + lib.optionalString (config.version == "1.8.0.0") ''
|
56 | 56 | package haskell-language-server
|
57 |
| - flags: -qualifyimportednames -stylishhaskell${lib.optionalString (config.compiler-nix-name != "ghc902") " -hlint"} |
| 57 | + flags: -qualifyimportednames${ |
| 58 | + # Stylish haskell is broken for GHC 9.2 |
| 59 | + lib.optionalString (__elem config.compiler-nix-name ["ghc921" "ghc922" "ghc923" "ghc924" "ghc925"]) " -stylishhaskell" |
| 60 | + # Hlint with this HLS only compiles for GHC 9.0 |
| 61 | + + lib.optionalString (!__elem config.compiler-nix-name ["ghc901" "ghc902"]) " -hlint" |
| 62 | + } |
58 | 63 | constraints: hls-fourmolu-plugin <1.1.1.0, hls-rename-plugin <1.0.2.0, hls-stan-plugin <1.0.1.0
|
59 | 64 | ''
|
60 |
| - + lib.optionalString (config.version == "1.9.0.0") '' |
61 |
| - allow-newer: hls-call-hierarchy-plugin:ghcide, hls-call-hierarchy-plugin:hls-plugin-api |
62 |
| - '' |
63 | 65 | # TODO Remove this flag once the hls-haddock-comments-plugin is updated in hackage to work with ghc 9.2
|
64 | 66 | + lib.optionalString (__elem config.compiler-nix-name ["ghc921" "ghc922" "ghc923" "ghc924" "ghc925"]) ''
|
65 | 67 | package haskell-language-server
|
66 | 68 | flags: -haddockcomments
|
67 |
| - '' |
68 |
| - # Exclude `retrie` that does not actually work with older versions of GHC. |
69 |
| - # TODO Remove this once https://github.com/facebookincubator/retrie/pull/51 is fixed somehow |
70 |
| - + lib.optionalString (__elem config.compiler-nix-name ["ghc865" "ghc884" "ghc8105" "ghc8106" "ghc8107" "ghc901" "ghc902"]) '' |
71 |
| - constraints: retrie <1.2.1 |
72 | 69 | '');
|
73 | 70 | }
|
74 | 71 | )
|
|
0 commit comments