Haskell in Nixpkgs/NixOS | 712 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 143 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Dec 2025 | ||
| I'm not using treesitter. In fact, I explicitly just turned that off recently. | 01:17:10 | |
| moin for defining variables that aren't supposed to be exported (like in single-file programs), what's more idiomatic/common in haskell: multiple top-level assignments before the main function or let..in block(s)? | 06:08:05 | |
| Probably not the right room to be asking (sorry), and I'm not sure there is an option that's more idiomatic. But I'll give my own recommendations and heuristics:
| 07:46:35 | |
In reply to @b:chreekat.netoh damn, i confused the room | 09:06:53 | |
| 09:08:17 | ||
| 2 Dec 2025 | ||
| Well... the Haskell LSP is throwing errors for me on NixOS. I have it installed via my nix-shell:
| 06:04:21 | |
| That's pulling in GHC 9.10.3 | 06:04:51 | |
After doing some work on a Haskell program of mine, I got this message dumped into stderr:https://dpaste.alwaysdata.org/2T0oxtWG | 06:05:52 | |
* That's pulling in GHC 9.10.3 from nixpkg-unstable | 06:06:20 | |
At least, that's the what I see in the error log of Emacs's lsp-mode | 06:06:31 | |
| Seems to be related to HLint, as I was attempting to do an HLint refactor when the LSP crashed. | 06:07:31 | |
| Also, I found this: https://github.com/haskell/haskell-language-server/issues/4674 | 06:07:36 | |
| What should I do here? | 06:08:02 | |
| iqubic (she/her): One of
| 08:43:21 | |
| Argh, matrix. Why do you do this to me? Why do you destroy my carefull numbering. | 08:43:58 | |
| iqubic (she/her): Sadly hls is kinda in a bad place because I am in a bad place. :-/. | 08:45:28 | |
| As in: My other duties are completely preventing me from fixing stuff in nixpkgs. | 08:46:35 | |
| I see | 16:50:48 | |
maralorn: Would you be able to tell me how to modify my shell.nix to disable HLS for now? | 16:54:57 | |
| disable HLS or disable hlint? | 17:00:35 | |
iqubic (she/her): You need to apply haskell.lib.compose.disableCabalFlag "hlint" to hls. | 17:03:08 | |
e.g. packages = p: [(haskell.lib.compose.disableCabalFlag "hlint" p.haskell-language-server)] or something similar. | 17:03:51 | |
* e.g. buildInputs = [(haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. | 17:04:11 | |
* e.g. buildInputs = [(pkgs.haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. | 17:04:22 | |
| Actually, I can just tell Emacs to disallow HLint code action stuff. Would that be sufficient for now? | 17:06:59 | |
| maralorn: What do you think? | 17:07:10 | |
| You can tell emacs to deactivate the hlint plugin. | 17:07:50 | |
| 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 | |
| * 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 | |
| This isn't working for me
| 17:14:55 | |