| 2 Dec 2025 |
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 |
iqubic (she/her) | Does it still have the HLint issue? | 18:59:51 |
iqubic (she/her) | * Does HLS for 9.12 still have the HLint issue? | 19:01:16 |
maralorn | No | 19:16:34 |
iqubic (she/her) | Cool! I have it built it now. | 19:45:16 |
iqubic (she/her) | maralorn: One last issue: It doesn't actually look like I have the HLS for 9.12 in this dev environment. I'm getting this error from the Emacs LSP mode:
haskell-language-server exe candidates: ["haskell-language-server-9.12.2","haskell-language-server"]
Failed to find a HLS version for GHC 9.12.2
Executable names we failed to find: haskell-language-server-9.12.2, haskell-language-server
| 23:34:07 |
| @jan:smittie.de left the room. | 23:34:50 |
iqubic (she/her) | This is true. The only HLS related executables I have in scope are haskell-language-server-9.10.3 and haskell-language-server-wrapper | 23:35:03 |
iqubic (she/her) | Using this shell.nix:
{ pkgs ? import <nixpkgs> {} }:
let
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
myPkg = pkgs.haskell.packages.ghc912.callCabal2nix "aoc25" src {};
in
pkgs.stdenv.mkDerivation {
name = "aoc-shell";
buildInputs = [
myPkg.env.nativeBuildInputs
pkgs.cabal-install
pkgs.haskell-language-server
pkgs.hlint
pkgs.ormolu
];
}
| 23:35:33 |
iqubic (she/her) | How can I make this work? If it's just a case of telling Emacs's lsp-mode to use a specific binary for the 9.12.2 HLS, then I can do that. However, I'm not currently seeing any relevant binaries on the $PATH | 23:48:29 |
| 3 Dec 2025 |
maralorn | I works when you follow | 00:19:22 |
maralorn | this | 00:20:04 |
maralorn | and this | 00:20:21 |
maralorn | literally | 00:20:29 |
iqubic (she/her) | Sorry... I missed the first thing you said... I'm a dummy! Sorry | 00:28:30 |