!RbXGJhHMsnQcNIDFWN:nixos.org

Nix Haskell

611 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 infrastructure123 Servers

Load older messages


SenderMessageTime
23 Oct 2024
@luna-null:matrix.org@luna-null:matrix.orgAlso I want access to System.Random in ghci as well tho09:56:04
@b:chreekat.netchreekat nix-shell -p 'haskellPackages.ghcWithPackages (p: [p.pretty-simple p.random])' 09:56:20
@luna-null:matrix.org@luna-null:matrix.orgOh shoot it works09:57:23
@luna-null:matrix.org@luna-null:matrix.orgTy!09:57:27
@b:chreekat.netchreekathttps://nixos.org/manual/nixpkgs/stable/#haskell for more, although I hate to point there because it's mostly about how to build Haskell packages in nixpkgs, rather than building Haskell packages as a user of NixOS09:58:33
@b:chreekat.netchreekatIt tries to do both09:58:48
@b:chreekat.netchreekatBut the latter is a moving target. I mostly use flakes these days09:59:14
@luna-null:matrix.org@luna-null:matrix.orgI can't get flakes to work properly. I wrapped one around my config.nix and that's it10:01:04
@luna-null:matrix.org@luna-null:matrix.orgBut yeah, would also like to figure out how to fix broken haskell packages in nixpkgs I keep seeing too10:02:10
@jean-paul.:matrix.orgjean-paul.base64 1.0 was released 2024-01-11 but nixpkgs master from 2024-07-01 (00d80d138) still has 0.4.2.4. I know package updates take a little while to happen but that revision of nixpkgs has a hackage pin.json that says it was updated on 2024-05-20. I thought this would mean that revision of nixpkgs would have package versions from hackage as of 2024-05-20. What have I misunderstood?10:51:45
@emilazy:matrix.orgemilyperhaps Stackage was still on 0.4.2.4 at that point10:53:14
@jean-paul.:matrix.orgjean-paul.oh no more layers of indirection. so nixpkgs gets updates based on what's on stackage?10:54:06
@emilazy:matrix.orgemilyAIUI the Nixpkgs Haskell package set is Stackage, overlayed with latest Hackage versions for everything that's not on Stackage.10:54:40
@emilazy:matrix.orgemilyNixpkgs is a single set of package versions that are meant to work together, which matches the Stackage model10:54:54
@emilazy:matrix.orgemilypresumably either base64 1.0 broke stuff or they just hadn't gotten around to the bump yet10:55:38
@jean-paul.:matrix.orgjean-paul.okay, that makes sense. it looks like 1.0 is in stackage now. I'm trying to see if I can find out when it was added.10:56:24
@jean-paul.:matrix.orgjean-paul.I can't tell if https://www.stackage.org/package/base64/snapshots is a complete list or not. I suspect not? so it only suggests it was added to nightly sometime before 2024-08-20. but ... which stackage does nixpkgs track? nightly?10:57:11
@emilazy:matrix.orgemily I think it is Nightly, but there my knowledge is exhausted. probably you could just check the latest nixpkgs-unstable to see which version it has now 10:59:13
@jean-paul.:matrix.orgjean-paul.found this endpoint and did a binary search to find the update to nightly happened 2024-02-02 - https://www.stackage.org/diff/nightly-2024-02-01/nightly-2024-02-0210:59:57
@jean-paul.:matrix.orgjean-paul. emily: thanks. and, assuming you're the same emily, thanks for the base64 package :) 11:00:39
@jean-paul.:matrix.orgjean-paul.mmm master@HEAD still has 0.4.2.411:01:50
@emilazy:matrix.orgemilynope, that's a different Emily :D11:01:51
@emilazy:matrix.orgemily we did just merge a haskell-updates into the current staging-next cycle and it still has 0.4.2.4 11:03:00
@emilazy:matrix.orgemilyso I guess we do track LTS11:03:05
@emilazy:matrix.orgemilyyeah: https://github.com/NixOS/nixpkgs/commit/41ffdf94002c38a2540a7d88dd2b7e57746627c111:03:29
@jean-paul.:matrix.orgjean-paul.okay, good to know. totally not how I thought it worked. thanks again11:04:12
@emilazy:matrix.orgemilyif we just shipped latest Hackage versions I think tons of stuff would be broken11:05:06
@emilazy:matrix.orgemilythanks to the Haskell ecosystem's exciting and forward-thinking attitude towards backwards compatibility11:05:21
@jean-paul.:matrix.orgjean-paul.yes, seems likely I guess.11:05:27
@emilazy:matrix.orgemilywhy we use Stackage LTS rather than nightlies I can't speak to – IIRC years ago the nightlies were often missing a bunch of stuff because of churn? the Nixpkgs Haskell maintainers would have to answer that one11:05:44

Show newer messages


Back to Room ListRoom Version: 6