Commit Graph

31 Commits

Author SHA1 Message Date
h7x4
82f8caefa3 haskell-language-server: lib.filterAttrs -> lib.removeAttrs 2025-10-27 19:07:34 +09:00
Alexandre Esteves
a0141c7665 haskell-language-server: support haskellPackages.ghc.version by default 2025-01-17 15:49:21 +01:00
Silvan Mosberger
84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Naïm Favier
4ddf5a650f haskell-language-server: bump default GHC version to 9.6 2024-01-15 13:19:15 +01:00
Profpatsch
77908eaac0 haskell-language-server: empty list removes all formatters
Based on the discussion in
https://github.com/NixOS/nixpkgs/pull/261848
2023-11-09 17:27:20 +01:00
Profpatsch
8e803f2fb9 haskell-language-server: keep only formatters the user wants
This introduces a list of `supportedFormatters` that are the ones that
should be compiled into hls. Removes a nontrivial amount of transitive
dependencies if only one formatter is used in a project.
2023-11-09 17:27:20 +01:00
Profpatsch
529cbf1a03 haskell-language-server: check supportedGhcVersions in assert
This produces a better error message than just returning the error of
the `haskell.packages."ghc${version}"` interpolation.
2023-11-09 17:27:20 +01:00
Profpatsch
811db8c616 haskell-language-server: reformat code a bit & document better 2023-11-09 17:27:20 +01:00
maralorn
59e94be9fe ghc: update default version 9.2.x -> 9.4.x 2023-06-28 20:03:53 +02:00
maralorn
ca3fb23199 haskell-language-server: Update wrapper to ghc 92 and don‘t provide version less executable 2022-11-24 15:32:48 +01:00
maralorn
bdcbbc7bd2 haskell-language-server: Default toplevel attribute to dynamic linking and one ghc version 2022-09-21 16:39:12 +02:00
maralorn
fae2ff5c03 haskell.{compiler,packages}: Add aliases without minor versions 2022-09-21 05:51:28 +02:00
sternenseemann
7f909b041b haskell.compiler: ghc923 -> ghc924
https://www.haskell.org/ghc/download_ghc_9_2_4.html
2022-07-28 18:09:33 +02:00
sternenseemann
90099ac5fa haskell.compiler: ghc922 -> ghc923
https://www.haskell.org/ghc/download_ghc_9_2_3.html

Since the tarball is generated by Hadrian, neither autoreconf nor ./boot
is executed so ./configure and ghc.mk is missing.
2022-05-28 21:11:07 +02:00
sternenseemann
47f837f5e8 haskell.compiler: ghc921 -> ghc922
https://www.haskell.org/ghc/download_ghc_9_2_2.html
2022-03-09 16:42:07 +01:00
sternenseemann
a386d540d8 haskell-language-server: fix reference logic
If we are linking dynamically, it's practically no use removing
references, as we depend on GHC either way via linking.

I've also elected to keep the references to the data outputs in all
cases — they are a bit arcane (there's no easy way to tell they
definitely are not necessary) and don't contribute too much to the
overall closure size.
2022-02-10 13:02:13 +01:00
sternenseemann
ea5e442833 haskell-language-server: default to statically linking haskell deps
This means we don't use the system linker by default, but decreases
closure size significantly, as we no longer reference every supported
version GHC.
2022-02-08 21:55:48 +01:00
sternenseemann
a7c18f7a90 haskell-language-server: retain old postInstall if any 2022-02-08 19:03:18 +01:00
sternenseemann
dbd3a83303 haskell-language-server: make linking configureable in wrapper
haskell-language-server will now default to building a shared
executable, as upstream does, complete with a huge closure. By passing
{ dynamic = false; } via override, it is still possible to build a
"statically linked" variant of HLS, as it used to be.

Note: Before this change HLS would fail to compile on aarch64.
2022-02-08 18:53:57 +01:00
sternenseemann
5dac0d9723 haskell-language-server: disable GHC 9.2.1 by default on aarch64
GHC 9.2.1 is still very much broken on aarch64, unfortunately.
2022-02-06 13:24:29 +01:00
Malte Brandy
b20fb1ba49 haskell.packages.ghc921.haskell-language-server: Fix build and enable 2022-02-05 03:15:11 +01:00
sternenseemann
41eef0059d haskell.compiler: ghc901 -> ghc902
https://www.haskell.org/ghc/download_ghc_9_0_2.html
2021-12-26 10:00:37 +01:00
Ellie Hermaszewska
15ae25f36c haskell: switch from haskell.lib to haskell.lib.compose 2021-11-07 20:18:45 +08:00
Malte Brandy
c077f5ae57 haskell-language-server: Remove useless major version aliases
The aliases, like haskell-language-server-8.10 do not get discovered by the hls-wrapper.
Only `haskell-language-server` and e.g. `haskell-languag-server-8.10.7` work.
I got that wrong when introducing those aliases.
2021-10-04 22:05:38 +02:00
Malte Brandy
d71129e1af haskell.packages.ghc901.haskell-language-server: Fix build 2021-09-18 03:17:47 +02:00
sternenseemann
9eca744cc0 ghc: 8.10.6 -> 8.10.7
https://www.haskell.org/ghc/download_ghc_8_10_7.html
2021-08-27 00:42:51 +02:00
sternenseemann
cb330ce4f0 ghc: 8.10.4 -> 8.10.6
The only big change is required for darwin since GHC 8.10.5 now
runs xattr in the install phase on darwin:

* 11e1dcde0d
* ec451cac39

Unfortunately, it uses the host /usr/bin/xattr by default which is
present in the build due to a lack of sandboxing on darwin. That xattr
version however still requires Python 2.7 whereas Python 3.8 is in PATH
in our build. We solve this by setting the XATTR environment variable.

We can't use python3Packages.xattr since GHC expects Apple's fork of
xattr which provides some extra flags to utilize.

Co-authored-by: Cheng Shao <cheng.shao@tweag.io>
2021-08-14 17:12:39 +02:00
Peter Simons
bfc21fc316 haskell-language-server: drop obsolete ghc-8.6.5 from the wrapper 2021-03-12 21:29:55 +01:00
Jakob Leifhelm
bcadd3e19c haskell-language-server: ghc 8.10.3 -> ghc 8.10.4 2021-02-21 19:28:11 +01:00
Jakob Leifhelm
16c10f8b05 haskell-language-server: default ghc 8.10.2 -> 8.10.3 2021-02-07 10:15:58 +01:00
maralorn
0756b8a7bf haskell-language-server: Init wrapper for multiple ghc versions at 0.5.0 (#99519)
* haskell-language-server: Init wrapper for multiple ghc versions at 0.5.0

* Fix closure size

* docs: Add hls section to Haskell part of manual
2020-10-10 16:01:57 +02:00