!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

706 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/142 Servers

Load older messages


SenderMessageTime
9 May 2025
@alex:tunstall.xyzAlex
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:maralorn.demaralorn
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:maralorn.demaralornBut 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:maralorn.demaralornI 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:maralorn.demaralorn * 21:42:09
@bodzioney:matrix.orgEthanCurrently 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:maralorn.demaralorn
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:maralorn.demaralornOh wait21:57:03
@bodzioney:matrix.orgEthanSorry, should have specified. I'm using callCabal2nix. I meant more so about generating a full flake from a cabal file21:57:06
@maralorn:maralorn.demaralornAh , yeah no that's a lot of cargoculting21:57:34
@maralorn:maralorn.demaralorn But of course you can have one flake for all your subpackages together 21:57:58
@maralorn:maralorn.demaralornIf they are in the same git repo that's the way to go21:58:27
@bodzioney:matrix.orgEthan"cargoCulting"? That's a new one lol21:58:52
@maralorn:maralorn.demaralornUh, 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:matrix.orgtoonn It's as if you're cargo culting cargo culting : D 22:01:18
@bodzioney:matrix.orgEthanOh I mean real cargo cults are like when a remote tribe starts worshipping a sailor that they met haha22:01:22
@maralorn:maralorn.demaralornWhat I meant to say, yes I copy flakes all the time, ... that's part of bootstraping a new project,22:02:52
@maralorn:maralorn.demaralornSo they all subtly diverge and work slightly different. 🫣22:03:24
10 May 2025
@sternenseemann:systemli.orgsterni 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:maralorn.demaralornallow-newer, reminds me at this point of projects like BER. 😂13:38:07
@jwwiegley:matrix.orgJohn Wiegleyhmm.. 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:maralorn.demaralorn
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:maralorn.demaralornAre you on darwin?16:52:07
@alexfmpe:matrix.orgalexfmpe"haskellNix" ?16:52:09
@teoc:matrix.orgTeo (he/him)Perhaps this is related to 9.10.2? Which requires a patch to hls16:52:36
@alexfmpe:matrix.orgalexfmpethe 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 ago16:53:39
@alexfmpe:matrix.orgalexfmpe* 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 ago16:53:52
@maralorn:maralorn.demaralorn
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
@jwwiegley:matrix.orgJohn Wiegley Oh, your quality has been excellent, I've been upgrading these flakes for years now without any breakage at all. 16:54:06
@jwwiegley:matrix.orgJohn Wiegleyhere's the flake: https://github.com/jwiegley/renamer/blob/main/flake.nix16:54:20

Show newer messages


Back to Room ListRoom Version: 6