!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 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.org145 Servers

Load older messages


SenderMessageTime
3 Apr 2025
@hellwolf:matrix.orghellwolf* so, with that branch, HLS works for ghc 912 too? I will give it a try. That stopped me from updating my project from switching to 9.12. Btw, would 9.12.2 make it there too? 06:25:27
@qyliss:fairydust.spaceAlyssa Ross
In reply to @sternenseemann:systemli.org
Alyssa Ross: GHC supports being bootstrapped with the two major versions before it officially (so 9.8 can bootstrap 9.10 and 9.12). Self bootstrapping often works though it probably requires some tinkering. It's probably worth investigating whether 9.8 can bootstrap 9.8 since we're currently upgrading to that version.
Looks like it just works! I'll open a PR and we can figure out details :)
10:58:57
@alex:tunstall.xyzAlex

NB: Isn't self-booting supposed to work for every version?

I don't see how stage 2 could be compiled if stage 1 can't be compiled by an identical stage 0.

11:30:11
@alexfmpe:matrix.orgalexfmpe
In reply to @hellwolf:matrix.org
so, with that branch, HLS works for ghc 912 too? I will give it a try. That stopped me from updating my project from switching to 9.12.
Btw, would 9.12.2 make it there too?
That PR has been merged, so you want haskell-updates branch really. Can't say I've tried HLS 2.10 yet and there were also a couple reports of seg faults over at #haskell-language-server:matrix.org so there might even be a 2.11 soon
12:06:54
@alexfmpe:matrix.orgalexfmpe * That PR has been merged, so you want haskell-updates branch really. Can't say I've tried HLS 2.10 yet and there were also a couple reports of seg faults over at #haskell-language-server:matrix.org so there might even be a new release soon 12:47:38
@alexfmpe:matrix.orgalexfmpealso, haskell-updates has 9.8 as default ghc, but 9.12.2 is there and the default ghc91212:49:04
@alexfmpe:matrix.orgalexfmpeI'm not sure exactly how/when the caching jobs work, but I expect as long as 9.12 isn't the default, you'll have cached compiler but not cached packages12:50:11
@alex:tunstall.xyzAlex
In reply to @alexfmpe:matrix.org
I'm not sure exactly how/when the caching jobs work, but I expect as long as 9.12 isn't the default, you'll have cached compiler but not cached packages
Cache is populated from haskell-updates (and IIRC only from that branch).
12:51:25
@maralorn:maralorn.demaralornWell and from master of course. Although the list of jobs which get build on which branch is slightly different.13:03:15
@maralorn:maralorn.demaralornSome central packages, e.g. hls are being cached for every (major) compiler version.13:03:46
@alexfmpe:matrix.orgalexfmpenoice14:00:41
@alexfmpe:matrix.orgalexfmpeyeah this is what confuses me, which does which14:00:55
@alexfmpe:matrix.orgalexfmpeI haven't gotten even 9.8 from cache on my mac on haskell-updates14:01:13
@alexfmpe:matrix.orgalexfmpe* I haven't gotten even 9.8 from cache on my m1 mac on haskell-updates14:01:39
@alexfmpe:matrix.orgalexfmpe* I haven't gotten even ghc 9.8 from cache on my m1 mac on haskell-updates14:02:11
@maralorn:maralorn.demaralornWell builds also need to succeed of course.14:21:22
@maralorn:maralorn.demaralornwell compare pkgs/top-level/release.nix (ctrl+f haskell) with pkgs/top-level/release-haskell.nix14:26:42
@profpatsch:augsburg.oneProfpatsch Is there a shortcut for building an executable with pre-set GHC RTS params?14:26:49
@profpatsch:augsburg.oneProfpatschIn particular -Iw60 for small scripts to reduce the idle gc frequency14:27:04
@maralorn:maralorn.demaralornYes, you can pass RTS flags to set by default to ghc.14:27:27
@maralorn:maralorn.demaralorn e.g.: -with-rtsopts=-maxN2 14:28:01
@maralorn:maralorn.demaralorn * e.g.: ghc-options: -threaded -with-rtsopts=-maxN2 14:28:28
@profpatsch:augsburg.oneProfpatschAh you mean in the cabal file?14:28:43
@profpatsch:augsburg.oneProfpatschI guess that works14:28:46
@maralorn:maralorn.demaralornAccording to that we mainly build every ghc major release+hls on master and plenty more on haskell-updates.14:30:16
@alexfmpe:matrix.orgalexfmpeHuh so the darwin build is probably failing is that it?14:42:16
@maralorn:maralorn.demaralornOh, no.14:45:15
@maralorn:maralorn.demaralornI think because of reasons which I would largely summarize under "Apple" we currently don’t build for any darwin target on haskell-updates. 😄14:45:53
@maralorn:maralorn.demaralornThat was however a temporary mitigation for that fact that stuff was very fragged. I don’t know what would need to happen for us to re-enable them.14:47:05
@alex:tunstall.xyzAlex
In reply to @profpatsch:augsburg.one
Ah you mean in the cabal file?
The alternative, if you don't want to touch the Cabal file, is that you edit the cabal2nix output or override the package.
I think --ghc-options can be added to configureFlags?
14:49:31

Show newer messages


Back to Room ListRoom Version: 6