| 2 Dec 2025 |
iqubic (she/her) | What should I do here? | 06:08:02 |
maralorn | iqubic (she/her): One of
-
disable the hlint plugin in your editor config.
-
disable the hlint plugin by locally overriding the hls package
-
disable the hlint plugin by adding (and upstreaming) an override in nixpkgs
-
wait for the hls release which disables the hlint plugin to propagate to you.
-
or 4. needs to happen and needs to be backported to 25.11 because we shouldn’t have a broken hls there.
| 08:43:21 |
maralorn | Argh, matrix. Why do you do this to me? Why do you destroy my carefull numbering. | 08:43:58 |
maralorn | iqubic (she/her): Sadly hls is kinda in a bad place because I am in a bad place. :-/. | 08:45:28 |
maralorn | As in: My other duties are completely preventing me from fixing stuff in nixpkgs. | 08:46:35 |
iqubic (she/her) | I see | 16:50:48 |
iqubic (she/her) | maralorn: Would you be able to tell me how to modify my shell.nix to disable HLS for now? | 16:54:57 |
maralorn | disable HLS or disable hlint? | 17:00:35 |
maralorn | iqubic (she/her): You need to apply haskell.lib.compose.disableCabalFlag "hlint" to hls. | 17:03:08 |
maralorn | e.g. packages = p: [(haskell.lib.compose.disableCabalFlag "hlint" p.haskell-language-server)] or something similar. | 17:03:51 |
maralorn | * e.g. buildInputs = [(haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. | 17:04:11 |
maralorn | * e.g. buildInputs = [(pkgs.haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. | 17:04:22 |
iqubic (she/her) | Actually, I can just tell Emacs to disallow HLint code action stuff. Would that be sufficient for now? | 17:06:59 |
iqubic (she/her) | maralorn: What do you think? | 17:07:10 |
maralorn | You can tell emacs to deactivate the hlint plugin. | 17:07:50 |
maralorn | I don’t know if disabling the code actions does suffice. I think the crash already happens on calculation of available code actions so you have to be early enough. | 17:08:36 |
maralorn | * I don’t know if disabling the code actions does suffice. I think the crash already happens on calculation of available code actions so you have to be "early enough". | 17:08:45 |
iqubic (she/her) | This isn't working for me (pkgs.haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)
LATITUDE-NIXOS hs/aoc25 » nix-shell 127 ↵
fetching path input 'path:/nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source'
building '/nix/store/mlbpkxipyf763cm4hcanls6wp3mm5vb1-cabal2nix-aoc25.drv'...
error:
… while evaluating an expression to select 'drvPath' on it
at «internal»:1:552:
… while evaluating strict
at «internal»:1:552:
(stack trace truncated; use '--show-trace' to show the full trace)
error: function 'anonymous lambda' called with unexpected argument 'mkDerivation'
at /nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix:1:1:
1| {
| ^
2| lib,
note: trace involved the following derivations:
derivation 'aoc-shell'
| 17:14:55 |
iqubic (she/her) | maralorn: What should I do here? | 17:17:03 |
maralorn | Ooh | 17:21:28 |
maralorn | replace pkgs.haskell-language-server with pkgs.haskellPackages.haskell-language-server. | 17:21:57 |
iqubic (she/her) | maralorn: Ta! It works now! | 17:25:34 |
iqubic (she/her) | I won't be able to do automated HLint stuff now, but that's fine. | 18:08:37 |
maralorn | Yeah, 9.10 is a bit cursed that way. | 18:14:20 |
iqubic (she/her) | @maralorn: Can I upgrade to a more recent version of GHC that isn't cursed? | 18:25:12 |
iqubic (she/her) | * maralorn: Can I upgrade to a more recent version of GHC that isn't cursed? | 18:25:35 |
iqubic (she/her) | No... I can't. 9.10 is the newest version. | 18:26:34 |
maralorn | iqubic (she/her): We use ghc 9.12 at work. It’s released and working in nixpkgs. | 18:29:22 |
iqubic (she/her) | How can I switch my shell.nix to using 9.12? | 18:30:07 |
maralorn | Replace all occurences of haskellPackages with haskell.packages.ghc912 | 18:30:46 |