Haskell in Nixpkgs/NixOS | 722 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 145 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Mar 2026 | ||
| 00:38:04 | ||
| I'm truly confused... https://github.com/NixOS/nixpkgs/commit/34f316a97a3e0e69bea9b44cd1142f7e73557437 broke haskell.packages.ghc914.haskell-debugger - reverting the commit fixes it the reason is that the older hie-bios's bounds do not build with 9.14 boot libs however, switching back to recent hie-bios in configuration-9.14.nix causes failures in the test suite when building hie-bios??? oddly enough, the older hie-bios does build with jailbreak | 14:52:55 | |
| * I'm truly confused... https://github.com/NixOS/nixpkgs/commit/34f316a97a3e0e69bea9b44cd1142f7e73557437 broke haskell.packages.ghc914.haskell-debugger - reverting the commit fixes it the reason is that the older hie-bios's bounds do not build with 9.14 boot libs however, switching back to recent hie-bios in configuration-9.14.nix causes failures in the test suite when building hie-bios??? the older hie-bios does build with jailbreak, doesn't seem like much changed for 9.14: https://github.com/haskell/hie-bios/commits/master/ | 14:53:23 | |
| alexfmpe: you probably lose an override that is otherwise applied to hie-bios | 19:06:52 | |
| the order of the overlays matters and it is not always ideal | 19:07:13 | |
| Aaaah yeah could be, I PR'd jailbreak for now since it works | 19:12:42 | |
| 12 Mar 2026 | ||
| alexfpe: https://hydra.nixos.org/build/323993958 | 20:35:21 | |
| * alexfmpe: https://hydra.nixos.org/build/323993958 | 20:35:26 | |
| alexfmpe: probably a regression from 9.12.2 -> 9.12.3, curious | 21:47:51 | |
| 13 Mar 2026 | ||
| hmm happens for primitive and text-short | 02:16:36 | |
| and 9.14.1 | 04:24:40 | |
| asked in #ghc-js-backend:matrix.org | 04:24:44 | |
| okay I figured out why and wrote there | 11:18:36 | |
| we could just downgrade the job to ghc9122 until this is resolved, not sure | 11:19:07 | |
| I didn't even know we had 9.12.3 what with the bug | 17:53:50 | |
| We don't have ghc9121 | 17:54:02 | |
| well we patched it so | 19:58:44 | |
| i thought 9.12.4 was never coming out but rc1 has been uploaded today so | 19:59:07 | |
I have multiple haskellPackages.developPackage projects i develop infrequently (it's ok if build fails sometimes) using cabal.I use import <nixpkgs> {} because i do not want to manually set versions for their ghc toolchain, and have them all use the same compiler (they should update using a centrally defined value ; i used ghcup before and it installed 200gb of ghc and libs in a year). I now want to test a newer version of ghc (i want to test the haskell debugger project) but my stable nixpkgs only has ghcHEAD with version >= 9.14 (but which appears to be not yet supported by cabal (or is the cabal in my ghcHEAD an old one?)). Is there a way to have similar behavior?I was thinking of copying haskell.packages.ghc___ from unstable into my local nixpkgs or pinning unstable in a central haskell project that i need to pull from manually. Any advice is welcome. | 23:11:58 | |
| I have a "devenv" project with basically just a shell.nix with a nixpkgs pin and haskell tooling | 23:35:01 | |
that way it's independent of my system nixpkgs, yet it works as a default environment for all projects where I cba doing anything fancier than <nixpkgs> | 23:35:47 | |
| if you really want a nixpkgs-provisioned debugger, you probably want to point to haskell-updates branch, as https://github.com/NixOS/nixpkgs/pull/496489 is fairly recent and not yet in unstable branch | 23:38:09 | |
| * I have a "devenv" project with basically just a shell.nix with a nixpkgs pin for haskell tooling | 23:38:30 | |
so I guess this, but pin current haskell-updates | 23:40:08 | |
also much better for caching than import <nixpkgs> or nix-shell -p cabal-install ghc ghcid | 23:41:00 | |
| Is there a binary cache? (Currently building some libraries i know i do not depend on in my project). | 23:58:45 | |
| 14 Mar 2026 | ||
| 🤔 Maybe i should try it with a minimal project, since nix-shell failed. | 00:01:21 | |
| 00:02:10 | |
| you might be building some transitive deps, or deps of tooling (e.g. cabal-install, cabal2nix) | 00:03:01 | |
| It started building basement foundation and happy (it likely was compiling cabal and hoogle ) | 00:03:21 | |