!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

678 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 infrastructure135 Servers

Load older messages


SenderMessageTime
15 Sep 2025
@mangoiv.:matrix.orgMangoIV and you don't get around the freeze-stage-n thing anyway because it's just a user choice of whether or not recompiler the respective boot compiler 13:43:20
@mangoiv.:matrix.orgMangoIVthe tool cannot decide that for you 13:43:27
@teoc:matrix.orgteo (they/he)My view is that if people want to make it build with cabal-install, then that leads to better code in GHC since we make fewer assumptions. And it just means that stuff gets made nicer13:44:12
@sternenseemann:systemli.orgsterniIt kind of boils down to that, from a packager's perspective, make is understood software and you know how to work with it and debug it. Hadrian is just too smart and a bit of a black box. I think the motivation was that people were getting scared to change the make build system since it was getting to complicated and unwieldy, but hadrian did not significantly simplify things as far as I can tell.13:44:37
@teoc:matrix.orgteo (they/he) Yeah good q. I feel like people ran out of steam right? And the main Hadrian person was hired by Jane Street 13:44:43
@sternenseemann:systemli.orgsterniI mean all the packages have the semantics of Cabal packages already so you are just simplifying stuff as much as possible if you do that.13:45:08
@mangoiv.:matrix.orgMangoIVbut cabal can indeed not build GHC, can it? 13:45:26
@mangoiv.:matrix.orgMangoIVlike these are required conditions, but not sufficient ones13:45:53
@teoc:matrix.orgteo (they/he) the IOG folks implemented this, and it required very few changes. Loads of work is required for cabal to have proper cross support but that's separate 13:45:58
@mangoiv.:matrix.orgMangoIVand GHC is in fact special13:46:13
@sternenseemann:systemli.orgsterniI would just start with adding a MicroHs package set built with GHC as we don't have hugs and then just iterate on that; maybe add hugs separately, have a hugs package set (if that even makes sense).13:46:17
@teoc:matrix.orgteo (they/he)mostly because all the tough work had already happened upstream13:46:18
@mangoiv.:matrix.orgMangoIVit's not like it's any other cabal package13:46:19
@mangoiv.:matrix.orgMangoIVthat's for one stage though, right? 13:46:58
@teoc:matrix.orgteo (they/he) nah they have a cabal project for each stage 13:47:21
@teoc:matrix.orgteo (they/he)https://github.com/stable-haskell/ghc/pull/94/files13:47:50
@sternenseemann:systemli.orgsterniYeah, it seems the wiring it up is the problem at the moment with cabal(-install) alone, but Nixpkgs has an easier time there.13:47:58
@mangoiv.:matrix.orgMangoIVI see- so the idea is to just have some script that wrap around cabal 13:48:03
@alex:tunstall.xyzAlex
In reply to @sternenseemann:systemli.org
I would just start with adding a MicroHs package set built with GHC as we don't have hugs and then just iterate on that; maybe add hugs separately, have a hugs package set (if that even makes sense).

we don't have hugs

All it needs is an older GCC than the Nixpkgs default (or for someone to patch it to work with newer GCC).

13:48:08
@sternenseemann:systemli.orgsternias long as it's not older than what we have in nixpkgs we can just package that shouldn't be a problem13:48:38
@sternenseemann:systemli.orgsterniI guess still it may be easier to get MicroHs with GHC to work first before figuring out hugs, but you know that better.13:49:01
@emilazy:matrix.orgemilyhow old13:49:12
@emilazy:matrix.orgemilywe will be dropping GCC 14 in 26.0513:49:21
@emilazy:matrix.orgemily er 13:49:34
@emilazy:matrix.orgemily1313:49:36
@emilazy:matrix.orgemily so I strongly recommend patching or -Wno-error over pinning an old GCC 13:49:45
@emilazy:matrix.orgemily(it needs Lennart's branch of Hugs right? presumably we could just send PRs and treat that as the upstream)13:50:11
@alex:tunstall.xyzAlex Right now I'm using gcc13Stdenv, so I may need to take a closer look at the error from newer GCCs... 13:50:16
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
(it needs Lennart's branch of Hugs right? presumably we could just send PRs and treat that as the upstream)
Sounds good to me.
13:50:46
@emilazy:matrix.orgemilyyeah I would prefer a moratorium on adding more GCC 13 at this point :P13:50:47

Show newer messages


Back to Room ListRoom Version: 6