| 24 Jul 2025 |
MangoIV | Hey guys. what is the current status of static linking with ghc? Is ghc 9.4.8 still the only supported compiler? | 08:51:07 |
sterni (he/him) | all GHCs work, but TemplateHaskell isn't supported for >= 9.6 | 10:02:35 |
Teo (he/him) | out of interest, is there a ticket that tracks this? | 10:38:26 |
Teo (he/him) | found it: https://github.com/NixOS/nixpkgs/issues/275304 | 10:38:45 |
MangoIV | teo (they/he): I will try out with your patch and report back. thank you! | 12:44:14 |
| 25 Jul 2025 |
iqubic (she/her) | Hmm... I think I might be doing something wrong. So I have this bare-bones starter project of mine: https://github.com/IQubic/mandelbrot | 00:10:59 |
iqubic (she/her) | And entering the nix-shell works. But then attempting to run cabal repl fails with this:
Resolving dependencies...
Error: [Cabal-7107]
Could not resolve dependencies:
[__0] next goal: mandelbrot (user goal)
[__0] rejecting: mandelbrot-0.1.0.0 (conflict: requires GHC2024 which is not supported)
[__0] fail (backjumping, conflict set: mandelbrot)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: mandelbrot
| 00:12:02 |
iqubic (she/her) | Does cabal not support GHC2024 yet? | 00:12:13 |
@le:4d2.org | In reply to @mequbic:matrix.org Does cabal not support GHC2024 yet? GHC2024 is only supported if you have at least version 9.10 of ghc, according to a warning when initialising projects with cabal. nix installs 9.8.4 by default though.
When I explicitly install a newer version using nix-shell -p cabal-install haskell.compiler.ghc9122, which installs ghc version 9.12.2, it works.
(Well "works": I get a different error, which could be resolved with changing base ^>= 4.19.2.0 to base >= 4.19.2.0 in mandelbrot.cabal, but that's a different topic)
| 05:49:07 |
@le:4d2.org | In reply to @le:4d2.org
GHC2024 is only supported if you have at least version 9.10 of ghc, according to a warning when initialising projects with cabal. nix installs 9.8.4 by default though.
When I explicitly install a newer version using nix-shell -p cabal-install haskell.compiler.ghc9122, which installs ghc version 9.12.2, it works.
(Well "works": I get a different error, which could be resolved with changing base ^>= 4.19.2.0 to base >= 4.19.2.0 in mandelbrot.cabal, but that's a different topic)
To have all of this in your shell.nix, change
myPkg = pkgs.haskellPackages.callCabal2nix "mandelbrot" src {};
to
myPkg = pkgs.haskell.packages.ghc9122.callCabal2nix "mandelbrot" src {};
| 05:55:45 |
aidalgol | I need some help understanding this build failure from PR 424162. | 06:12:38 |