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 infrastructure | 136 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 Jun 2025 | ||
| The last packaged versions seems to be 9.8.x | 01:28:47 | |
GHCs are available as haskell.compiler.ghc910*, and the package sets at haskell.packages.ghc910*.lens (or whatever). Although keep in mind that sometimes things don't work with the non-default compiler. | 02:46:18 | |
In reply to @cdepillabout:matrix.orgThanks. But how large is th delta ?How many versions I can expect to be available when they are not yet released to the unstable branch? | 06:58:05 | |
| * Thanks. But how large is the delta? How many versions I can expect to be available when they are not yet released to the unstable branch? | 06:58:27 | |
In reply to @setunset:matrix.orgI am unsure what you mean. Do you wonder how many less haskell packages build on the non default ghc? Hard to say. | 07:22:35 | |
| But we have all recent ghc versions packaged including 9.12. | 07:23:33 | |
| They are all "released" in the sense that they exist on nixos-stable. They just are not yet defaults. | 07:24:42 | |
| a lot of packages build with 9.12 out of nixpkgs notably, both HLS and reflex-dom do and they have massive dependency footprints | 08:15:49 | |
| also, while the compiler is cached, the package set itself isn't, so the first build will be annoying | 08:16:08 | |
In reply to @alexfmpe:matrix.orgMakes sense. Thanks! | 12:22:43 | |
| 12:48:54 | ||
| 14:23:45 | ||
| 20 Jun 2025 | ||
| I am getting these compiler errors on aarch64-darwin after upgrading to ghc 9.8.4
It compiles on x86-linux. Anyone seen this before? | 22:13:43 | |
| 21 Jun 2025 | ||
| Looks like https://gitlab.haskell.org/ghc/ghc/-/issues/23746, but should be fixed in 9.8.4 iirc | 11:05:12 | |
| 22 Jun 2025 | ||
| You should really ask questions like this in the Haskell nixpkgs channel. | 09:39:48 | |
| maralorn Okay, so be it
| 09:41:18 | |
| * maralorn Okay, so be it
| 09:42:01 | |
In reply to @setunset:matrix.org You should use haskell-language-server from a different haskellPackages Instead of using top-level haskell-language-server, consider | 09:42:37 | |
| Not really | 09:42:53 | |
BTW, fourmolu will not work with a new syntax too | 09:43:52 | |
| I mean, HLS is indeed the 2.11 version as I want. It's just the wrong built (ghc 9.8.4 when I want ghc 9.10.2) | 09:44:07 | |
| The top level hls would also work with the supported versions override, but here you are using the haskell-language-server from haskellPackages which does not have that override | 09:44:30 | |
| But @root:sandwitch.dev solution also works | 09:44:55 | |
| @setunset:matrix.org you might also consider using haskellPackages.shellFor, it e.g. has a hoogle option | 09:46:02 | |
| s/haskellPackages/haskell.packages.ghc9102 | 09:46:55 | |
| haskellPackages correspond to a haskell.packages.ghcXYZ where XYZ is a current stackage LTS, I guess | 09:48:44 | |
| * haskellPackages corresponds to a haskell.packages.ghcXYZ where XYZ is a current stackage LTS, I guess | 09:49:06 | |
| Thank you very much maralorn and Sand Witch . It's building. Fingers crossed | 09:49:47 | |
| Quick question. When the scripts run to update packages from Hackage, do they take the latest uploaded to Hackage or the latest that build from Hackage? I'm asking because my package depends on Amazonka which works on Nix but is out of date on Hackage, causing builds to fail there. | 15:36:51 | |
| Latest uploaded | 15:37:43 | |