| 9 May 2025 |
Alex | In reply to @bodzioney:matrix.org Also is stack really used with nix? It seems that nix replaces its functionality. AFAIK it's only useful if you're on NixOS and really need to use Stack for whatever reason.
Most people here probably use Nix without Stack. | 21:35:31 |
maralorn | In reply to @bodzioney:matrix.org Also is stack really used with nix? It seems that nix replaces its functionality. Well, stack and cabal can provide incremental builds during development usually also one of them is used to setup HLS. I assume most nix users use cabal for that but I think stack should work for that, too. | 21:38:29 |
maralorn | But I wouldn't now how to productively develop a project only with nix. Especially since nix requires a .cabal file to build the project. | 21:40:04 |
maralorn | I don't know which is the best recent guide on setting up a haskell project right now. I know that I disagree with all of them a little but I never got to writing my own. 😃 | 21:41:32 |
maralorn | * | 21:42:09 |
Ethan | Currently I have a flake file which calls cabal2nix and sets up a dev shell, but there's no way to automate that right? Just copy and paste I assume? | 21:47:42 |
maralorn | In reply to @bodzioney:matrix.org Currently I have a flake file which calls cabal2nix and sets up a dev shell, but there's no way to automate that right? Just copy and paste I assume? The call to cabal2nix can be automated se the comment by Alex above. | 21:55:56 |
maralorn | Oh wait | 21:57:03 |
Ethan | Sorry, should have specified. I'm using callCabal2nix. I meant more so about generating a full flake from a cabal file | 21:57:06 |
maralorn | Ah , yeah no that's a lot of cargoculting | 21:57:34 |
maralorn | But of course you can have one flake for all your subpackages together | 21:57:58 |
maralorn | If they are in the same git repo that's the way to go | 21:58:27 |
Ethan | "cargoCulting"? That's a new one lol | 21:58:52 |
maralorn | Uh, I am not sure what that word means, people use it all the time and it kinda means copying what everyone else does (without understanding it). I think that predates the rust package manager. 😆 | 22:00:41 |
toonn | It's as if you're cargo culting cargo culting : D | 22:01:18 |
Ethan | Oh I mean real cargo cults are like when a remote tribe starts worshipping a sailor that they met haha | 22:01:22 |
maralorn | What I meant to say, yes I copy flakes all the time, ... that's part of bootstraping a new project, | 22:02:52 |
maralorn | So they all subtly diverge and work slightly different. 🫣 | 22:03:24 |
| 10 May 2025 |
sterni | hm it would probably be easy to add a --no-ignore-conditionals flag to jailbreak-cabal, but the question is whether it's worth it as a stopgap until we have allow newer? | 13:26:28 |
maralorn | allow-newer, reminds me at this point of projects like BER. 😂 | 13:38:07 |
John Wiegley | hmm.. seems that latest haskellNix unstable update has broken haskell-language-server. Does anyone have an incantation to jailbreak or downgrade that package? | 16:31:28 |
maralorn | In reply to @jwwiegley:matrix.org hmm.. seems that latest haskellNix unstable update has broken haskell-language-server. Does anyone have an incantation to jailbreak or downgrade that package? That seems implausible. We take quite good care not to break hls with our updates. | 16:51:16 |
maralorn | Are you on darwin? | 16:52:07 |
alexfmpe | "haskellNix" ? | 16:52:09 |
Teo (he/him) | Perhaps this is related to 9.10.2? Which requires a patch to hls | 16:52:36 |
alexfmpe | the LTS 23 bump we merged to master (which is probably on unstable now) does work with HLS 9.8 on darwin, I bumped to it couple days ago | 16:53:39 |
alexfmpe | * the LTS 23 bump we merged to master (which is probably on unstable now) does work with HLS + 9.8 on darwin, I bumped to it couple days ago | 16:53:52 |
maralorn | In reply to @teoc:matrix.org Perhaps this is related to 9.10.2? Which requires a patch to hls I think it built on all versions we shipped when we merged. | 16:53:53 |
John Wiegley | Oh, your quality has been excellent, I've been upgrading these flakes for years now without any breakage at all. | 16:54:06 |
John Wiegley | here's the flake: https://github.com/jwiegley/renamer/blob/main/flake.nix | 16:54:20 |