| 4 Jul 2025 |
lxsameer | hey folks,do we support cabal 3.14 for development? | 15:16:38 |
alexfmpe | not sure what "for development" means, does this answer it?
$ nix-build -A cabal-install
/nix/store/diig4i6ln0ia8xvv4kqs99klpjhlpzfl-cabal-install-3.14.2.0
| 15:38:44 |
lxsameer | sorry for the confusion, apparently, cabal2nix does not like the cabal-version: 3.14 | 15:51:24 |
lxsameer | in a cabal file | 15:51:28 |
maralorn | That was I think fixed very recently on the haskell-updates. | 15:52:48 |
ners | I found a package that has outdated dependency bounds. Trying to build it with doJailbreak , I would expect it to either succeed or fail at compile time, but:
Configuring OTP-0.1.0.0...
CallStack (from HasCallStack):
withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:368:14 in Cabal-3.10.3.0-ab3d:Distribution.Simple.Utils
Error: Setup: Encountered missing or private dependencies:
base >=4.5.0.0 && <4.14,
bytestring >=0.9.2.0 && <0.11,
time >=1.4 && <1.10
| 16:40:27 |
alexfmpe | cabal2nix doesn't handle conditionals properly (for now), and the deps are behind a if, so they don't survive the conversion to .nix | 17:01:15 |
alexfmpe | https://hackage.haskell.org/package/OTP-0.1.0.0/src/OTP.cabal | 17:01:16 |
alexfmpe | You can workaround by shoving them in with addBuildDepends | 17:01:41 |
alexfmpe | You can see examples in the configuration-ghcjs-9.x and configuration-darwin files | 17:02:26 |
Collin Arnett | How can I get the haddoc html files for dependencies of my project when using shellFor? I have doHaddoc turned on for my dependencies. | 18:35:27 |
alexfmpe | It's on by default I think? | 19:35:28 |
alexfmpe | Easiest way is to run hoogle locally | 19:35:41 |
alexfmpe | hoogle server --local -p 8080 | 19:36:18 |
alexfmpe | might need withHoogle = true, don't remember if default in shellFor | 19:36:48 |
Collin Arnett | Does the hoogle server serve the haddocs as well? I'm not really sure what I'm looking for so I would like to browse the docs like I would on hackage. | 20:44:03 |
Collin Arnett | Oh I see it does link them locally after you click on the package from hoogle. Thank you :D | 20:49:02 |