| 28 Feb 2026 |
woobilicious | Lol, the db isn't exactly human readable. | 07:10:34 |
maralorn | Yeah, fair. | 07:15:07 |
maralorn | Yet, I think if you need to write code for that taking inspiration from withHoogle might help. | 07:15:53 |
maralorn | But anyway apparently you already solved it. | 07:16:12 |
woobilicious | kinda, builtin packages (like bytestring) are missing | 07:16:53 |
andromeda | I'm calling pkgs.haskell.packages.ghc914.callCabal2nix to build my package. I want to switch to using build-type: Hooks which requires cabal-version: 3.14 in my .cabal file, but when I run the nix build it says Unsupported cabal format version in cabal-version field: 3.14. How can I give it a newer cabal that sees the new version? is that even what I need to do? | 13:45:38 |
woobilicious | ahh they're in ghc package, but slightly different layout | 07:18:21 |
woobilicious | Ahh okay I've found where "withHoogle" is implemented | 07:23:07 |
| 1 Mar 2026 |
woobilicious | andromeda: you probably need a version of nixpkgs with the new cabal version. | 01:14:17 |
woobilicious | you can also try running cabal2nix directly to see if it's a problem with our tooling and not cabal itself. | 01:26:40 |
| @acidbong:envs.net removed their profile picture. | 03:23:20 |
| @acidbong:envs.net removed their display name Acid Bong. | 03:23:31 |
| @acidbong:envs.net left the room. | 03:23:42 |
| @benjaminedwardwebb:envs.net removed their profile picture. | 05:50:27 |
| @benjaminedwardwebb:envs.net left the room. | 05:50:28 |
| @danl:envs.net left the room. | 08:55:04 |
| @flandweber:envs.net removed their display name Finn Landweber. | 12:17:10 |
| @flandweber:envs.net left the room. | 12:17:17 |
| @fr1d4y:envs.net | 12:36:09 |
| @fr1d4y:envs.net removed their display name fr1d4y. | 12:36:28 |
| @fr1d4y:envs.net left the room. | 12:41:59 |
| Allan Dinakaran joined the room. | 16:37:08 |
| @magpi:matrix.org left the room. | 21:29:45 |
| Philip W joined the room. | 22:41:32 |
| 2 Mar 2026 |
| iclanzan joined the room. | 01:25:33 |
iclanzan | I’ve been happily using Haskell for a couple of years through Nix like so:
(pkgs.haskell.packages.ghc910.override {overrides = ...;}).ghcWithPackages(p: [...])
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 HasCallstack to them to be able to debug that way so I have been trying to compile with -prof for the last couple of days with no success.
Does anyone have a working example of how to get this working?
| 14:19:07 |
alexfmpe | I thought nixpkgs built everything with and without profiling by default? | 19:24:59 |
alexfmpe | I see .o and .p_o in logs all the time | 19:25:12 |
| GlowupFeathers joined the room. | 20:38:25 |
Alex | In reply to @iclanzan:matrix.org
I’ve been happily using Haskell for a couple of years through Nix like so:
(pkgs.haskell.packages.ghc910.override {overrides = ...;}).ghcWithPackages(p: [...])
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 HasCallstack to them to be able to debug that way so I have been trying to compile with -prof for the last couple of days with no success.
Does anyone have a working example of how to get this working?
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 |