Haskell in Nixpkgs/NixOS | 730 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | 146 Servers |
| Sender | Message | Time |
|---|---|---|
| 31 Dec 2024 | ||
| That sounds interesting, that would mean some more reading on my part since i dont understand stack well enough to be able to say what hie.yaml even does off the top of my head | 17:16:21 | |
| Not sure if it's stack specific. Though if your hls works on the terminal it doesn't look like it needs handholding there | 17:17:04 | |
| I just got tired of chasing ghosts and chewed all the food I could for HLS | 17:17:27 | |
| So, you are personally using an older vscode haskell extension? Should I also be doing that or do you have other reasons? | 17:17:43 | |
| No reason other than I hadn't noticed I was behind really | 17:18:14 | |
| Also setup my vscode with nix, but was unaware there's a better source for vscode extensions than the default one in home manager / nixpkgs | 17:19:02 | |
| So you are on nixos and therefore getting vscode itself and the extensions also from nix? | 17:20:11 | |
| Hmm on my nixos I use emacs really. Have nix-managed vscode on the macos for work since I need to dogfood for the team being the default nix guy currently | 17:21:25 | |
| That should be independent from your issue really | 17:21:48 | |
| Everyone else on the team using vscode gets it from non nix channels and follows the same config steps after | 17:22:22 | |
| run code in project's nix shell etc | 17:22:35 | |
| * run code/codium in project's nix shell etc | 17:22:46 | |
| Huh, I just enabled the multipleComponents setting and suddenly the extension works again. Let's see for how long | 17:23:57 | |
| Problem is it's hard to say if it just randomly works again because i restarted vscode or if the setting actually helped | 17:24:32 | |
| I haven't enabled it myself because my old ass vscode extension doesn't support it, so I know it's not absolutely necessary | 17:25:00 | |
| But I don't use stack so that could matter | 17:25:10 | |
In reply to @megmug:matrix.orgYeah you want to restart once per change so you later know what was actually needed | 17:25:44 | |
| It makes sense to start from the 'sane defaults' state where you seem to be now anyway | 17:26:40 | |
| alexfmpe: Anyways, maybe your tip has helped me, at least for now, so thanks for that! Have been trying stuff for hours and happy that it works again at all 😅 | 17:29:47 | |
| 18:10:43 | ||
| hi I'm trying to cross compile nix-tree (from x86_64 to armv7, but I have the same issue to aarch64) and I get this error:
is there a standard solution to provide this -fexternal-interpreter ? | 19:40:45 | |
symphorien: no, not at the moment. haskell.nix has a scheme to start the iserv via qemu user mode emulation which we should eventually copy (last time someone tried they ran into some issues, but they may be solvable) | 20:50:27 | |
| if you can be bothered to set up haskell.nix, it should work | 20:50:47 | |
| not really, I have never touched haskell | 20:51:14 | |
| other question: when I cross compile nixfmt I get a cycle error: | 20:56:15 | |
hm interesting I've never noticed that, will need to investigate that. I guess dead code elimination doesn't work there… You can probably work around it by using haskell.lib.compose.overrideCabal { enableSeparateBinOutput = false; } nixfmt. | 20:59:53 | |
| I must be holding it wrong | 21:05:56 | |
|
| 21:06:12 | |
| interesting it doesn't work if the output is preselected, probably some fix point is wrong there | 21:11:19 | |
try haskellPackages.nixfmt instead that works! | 21:11:27 | |