Commit Graph

52 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
Malte Brandy
bac09b7658 haskell-language-server: Use hackage version and cleanup 2021-02-05 23:04:46 +01:00
Pavol Rusnak
a6ce00c50c treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Malte Brandy
7829f94244 haskelPackages.haskell-language-server: 0.7.1 -> 0.8.0 2021-01-08 20:57:02 +01:00
Joe Hermaszewski
a453036794 haskellPackages.haskell-language-server: 0.7.0 -> 0.7.1 2020-12-18 20:27:54 +01:00
Joe Hermaszewski
63e5171ff8 haskell-language-server: Make update.sh fetch latest tagged release 2020-12-18 20:27:53 +01:00
Joe Hermaszewski
c31e766a24 haskellPackages.haskell-language-server: 0.6.0 -> 0.7.0
Remove hls-brittany as it's no longer necessary

Fix the update script to include hls-explicit-imports-plugin and
hls-retrhls-retrie-plugin
2020-12-18 20:27:53 +01:00
Malte Brandy
13f96d5d65 haskell-language-server: 0.6.0rc -> 0.6.0 2020-11-13 21:37:56 +01:00
Malte Brandy
bf29c147c3 haskellPackages.haskell-language-server: Fix build
In preparation of the upcoming 0.6.0 release I wanted to fix hls.

It introduces two new plugin packages, which are not on hackage yet.

I remove apply-refact overrides, because current apply-refact versions
are compatible with all ghcs we support, according to their changelog.

I override more of the hls dependencies globally on the whole package
set, to avoid a lot of duplicate compilations. And because @peti changed
my mind about this being a good practice.

hls now uses a released version of ghcide
2020-11-13 21:37:56 +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
maralorn
9bf8b98045 haskell-language-server: 0.4.0 -> 0.5.0 (#99508) 2020-10-09 21:39:35 +02:00
galagora
875e9b94d0 haskell-language-server: cb861b878a -> c476992f43 2020-09-11 22:17:37 +03:00
galagora
80328d9ea4 haskell-language-server: hls-ghcide 0.3.0 -> 0.4.0
The patch is merged into master
2020-09-11 22:17:36 +03:00
galagora
e9b791e6a0 haskell-language-server: add brittany fork 2020-09-11 22:17:36 +03:00
Malte Brandy
89cfe01679 haskellPackages.haskell-language-server: 0.3.0 -> 0.4.0 2020-09-04 03:24:17 +02:00
Malte Brandy
1b836c6f10 haskellPackages.haskell-language-server: Fix expression 2020-08-27 19:27:27 +02:00
Joe Hermaszewski
e34b5375cd haskellPackages.haskell-language-server: fix typo in update script 2020-08-25 21:03:50 +08:00
Malte Brandy
af017c431a haskellPackages.haskell-language-server: 0.2.0 -> 0.3.0
While we are at it I:
* Disable tests, because I can‘t keep up with the speed hls introduces
more tests that cause trouble in nixpkgs.
* Fix builds of fourmolu and retrie
* Remove the wrapper for hls which is obsolete because of improved
package detection in hie-bios. And added a note that this can be removed
for ghcide soon, too.
2020-08-16 13:57:18 +02:00
Malte Brandy
ccb418a358 haskellPackages.haskell-language-server: 0.2.0.0 -> 0.2.2.0 2020-07-24 15:04:25 +02:00
Malte Brandy
5e756f5f31 haskellPackages.haskell-language-server: 0.1.0.0 -> 0.2.0.0
generated by
pkgs/development/tools/haskell/haskell-language-server/update.sh

with some manual tweaks
2020-07-24 13:02:55 +02:00