!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

685 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure136 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Aug 2025
@mrcjk:matrix.orgMarc JakobiHas anyone else noticed a significant increase in memory when compiling Haskell packages with ghc 9.8.4 compared to ghc 9.6.6? I haven't been able to pinpoint it yet and I can't reproduce it outside of nix builds.09:45:42
@ners:nixos.devners Does this happen on the same nixpkgs pin, e.g. nix build nixpkgs#haskell.packages.ghc984.rhine vs nix build nixpkgs#haskell.packages.ghc966.rhine? 10:09:07
@mrcjk:matrix.orgMarc Jakobi
In reply to @ners:nixos.dev
Does this happen on the same nixpkgs pin, e.g. nix build nixpkgs#haskell.packages.ghc984.rhine vs nix build nixpkgs#haskell.packages.ghc966.rhine?
It doesn't even happen for all packages. I'm trying to build the same package with ghc 9.6, but it's failing to build singletons-th (or singletons-th_3_5), which is one of the dependencies - which kind of adds to my suspicion that this may be a template-haskell regression.
14:28:51
@mrcjk:matrix.orgMarc JakobiYep, no matter how I try to override or jailbreak packages, I can't seem escape dependency hell if I use another ghc version.15:13:23
@teoc:matrix.orgteo (they/he)Are you able to reproduce this outside of nix? Might be good to open a GHC ticket if you can confirm it's a GHC issue15:31:08
@teoc:matrix.orgteo (they/he)Oh you already said you couldn't reproduce it outside of nix builds15:34:38
@sternenseemann:systemli.orgsterni teo (they/he): I mean what you could put on your GHC review pile is my never reviewed MR :p https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13932 16:30:06
@teoc:matrix.orgteo (they/he)Will do! Feel free to tag me in the future too. It's a real shame that that slipped through the cracks16:31:20
@teoc:matrix.orgteo (they/he)I hadn't realized you were already trying to build a stage2 compiler for these configurations. I know that isn't supported in hadrian in general and that's being fixed in https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444. But maybe it would be supported in this case and something is just going wrong with this flag. I'll look into it and see if there's an easy fix16:33:24
@sternenseemann:systemli.orgsterni I was convinced it worked, but when I checked the log I saw that only ghc the library is built in _build/stage1/compiler just before it finishes. Checking ghc --info revealed that it's indeed just Stage1 :( 16:48:18
@teoc:matrix.orgteo (they/he)Ah annoying!16:56:45
@oak:universumi.fioak πŸ³οΈβ€πŸŒˆβ™₯️Is it possible to ignore specific testcases when packaging a Haskell package, instead of disabling all the tests with dontCheck? With overrideCabal?19:03:10
@oak:universumi.fioak πŸ³οΈβ€πŸŒˆβ™₯️Found a solution, modify testFlags through overrideCabal21:09:34
5 Aug 2025
@mrcjk:matrix.orgMarc Jakobi I think I've narrowed the high memory consumption down to the use of inline-python's marshalling functions (fromPy, ...).
Will investigate further...
06:59:22
@mrcjk:matrix.orgMarc JakobiIt's not inline-python either. But I can work around it by disabling library profiling, which probably explains why I wasn't able to reproduce it outside of nix.09:48:07
@fargate:pikaviestin.fiFargate joined the room.12:44:58
@fargate-official:matrix.org@fargate-official:matrix.org left the room.12:45:33
@mrcjk:matrix.orgMarc JakobiIt's a combination of library profiling + template haskell in large modules (500 LOC). Please don't ask me why we have modules with ~500 LOC πŸ™ˆ13:39:15
@magic_rb:matrix.redalder.orgmagic_rb500 loc is not that much? Id think13:39:53
@magic_rb:matrix.redalder.orgmagic_rbIf you said 5000loc then sure13:40:00
@mrcjk:matrix.orgMarc JakobiI don't know how much the TH is adding to those lines13:44:38
@magic_rb:matrix.redalder.orgmagic_rbAh right, lots of TH13:44:56
@teoc:matrix.orgteo (they/he)You can use https://downloads.haskell.org/ghc/latest/docs/users_guide/debugging.html#ghc-flag-ddump-splices if you want to see the stuff TH outputs14:07:00
@sternenseemann:systemli.orgsterniyou should also probably try to figure out whether GHC or the linker is the problem14:44:05
6 Aug 2025
@mikelpr:matrix.orgMikel PΓ©rez changed their profile picture.02:53:36
7 Aug 2025
@jryans:matrix.orgJ. Ryan Stinnett joined the room.13:34:41
8 Aug 2025
@0x4a6f:nixos.dev0x4A6F joined the room.06:54:24
@sternenseemann:systemli.orgsterni teo (they/he): is there an issue alreday for the issue that finalStage = Stage2 is silently ignored? 10:06:06

Show newer messages


Back to Room ListRoom Version: 6