Haskell in Nixpkgs/NixOS | 698 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 |
|---|---|---|
| 1 Mar 2026 | ||
| 16:37:08 | ||
| 21:29:45 | ||
| 22:41:32 | ||
| 2 Mar 2026 | ||
| 01:25:33 | ||
| I’ve been happily using Haskell for a couple of years through Nix like so:
However recently one of my haskell apps started crashing with an exception from time to time. I am hunting for a way to have a call-stack printed for these exceptions. Since I don’t control third party libraries I cannot add Does anyone have a working example of how to get this working? | 14:19:07 | |
| I thought nixpkgs built everything with and without profiling by default? | 19:24:59 | |
I see .o and .p_o in logs all the time | 19:25:12 | |
| 20:38:25 | ||
In reply to @iclanzan:matrix.org If you really need to, you can override dependencies to tune them to your liking. But profiling builds are available by default, so if that's all you're after then you only need to tweak the build for the final executable. What exactly have you tried and how has it failed? The usual Cabal flag should just work. | 20:46:31 | |
| I am not using Cabal in my project. Trying to compile with Then I tried overriding | 21:04:48 | |
| Works fine for me. | 21:26:47 | |
| For reproducibility, I should also mention this: | 21:28:03 | |
| * Works fine for me. | 21:29:28 | |
| 3 Mar 2026 | ||
I figured it out. I am using TemplateHaskell and for that to work with -prof I needed to add -fexternal-interpreter. GHC’s error message indicated that as a possible solution but I didn’t explore it. 🤦 | 01:34:03 | |
| 4 Mar 2026 | ||
| in this case updating should help recent versions of nixpkgs build cabal2nix against Cabal 3.14 | 21:21:58 | |
| 5 Mar 2026 | ||
| 17:13:04 | ||
| 6 Mar 2026 | ||
| 18:41:12 | ||
| 8 Mar 2026 | ||
| 07:37:36 | ||
I have a strange situation where building a Haskell package on aarch64-darwin results in more references than expected (as reported by nix-store -q --references), and most of them are not actually present in the output (at least grep -ra doesn't find them). Does this ring a bell for anyone? To reproduce, clone https://github.com/the1lab/1lab and run nix-build -A shakefile. | 15:48:14 | |
| I recall hearing of a much alike issue before. Have you looked at the output of nix why-depends --all --precise? | 15:52:37 | |
| Thanks, that helped me figure out that the references are through symbolic links, which grep doesn't follow by default. | 16:01:40 | |
| 9 Mar 2026 | ||
| I finally discovered what breaks HLS on 9.12.3 and its a bug that has been present in Cabal 3.14 all along, but was masked by a bug that has been fixed in Cabal 3.14.2.0 lol https://github.com/haskell/cabal/issues/11598 | 15:03:54 | |
| 15:22:44 | |
IMO a bad change, though, since it doesn't make sense that build-tool-depends are available at test suite run time. Cabal should have rather added a different mechanism (that has been needed since forever) for this. | 15:23:50 | |
| You typoed the name of the executable on the report to cabal-add :P (you wrote fourmolu) | 16:11:15 | |
| Oh yay more build-tool-depends annoyances | 18:13:04 | |
| https://github.com/well-typed/haskell-debugger/pull/203 | 18:13:07 | |
| Which quickly got reverted because cabal somehow failed to build cabal | 18:15:21 | |
| https://github.com/well-typed/haskell-debugger/issues/206 | 18:16:06 | |
| * Oh yay more build-tool-depends annoyances. I recently ran into | 18:16:34 | |