!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

719 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/143 Servers

Load older messages


SenderMessageTime
28 Nov 2024
@alexfmpe:matrix.orgalexfmpeThe lib20:02:48
@alexfmpe:matrix.orgalexfmpeassuming it's something like w_5 <> h_5 <> md w_1020:03:46
@alexfmpe:matrix.orgalexfmpe* assuming it's something like w_5 <> h_5 <> md w_10 or w 5 <> h 5 <> md w 1020:04:07
@maralorn:maralorn.demaralornThat doesn’t seem unrealistic, does it?20:06:17
@alexfmpe:matrix.orgalexfmpeIt starts getting weird with w-3/4 or w-auto 20:06:31
@alexfmpe:matrix.orgalexfmpeClay does a gazillion classes to get all this overloading20:06:43
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
That doesn’t seem unrealistic, does it?
I mean I'm sure it's doable
20:06:55
@alexfmpe:matrix.orgalexfmpebut, in reflex-dom case, it's pretty hard to beat divClass "w-3/4 p-4"20:07:50
@alexfmpe:matrix.orgalexfmpedivTw (w (3/4) <> p 4)20:08:28
@alexfmpe:matrix.orgalexfmpeLooks much worse20:08:35
@alexfmpe:matrix.orgalexfmpeor divTw [w (3/4, p 4]20:10:12
@alexfmpe:matrix.orgalexfmpeAnd you basically need implicit params on the argument of divTw20:10:44
@alexfmpe:matrix.orgalexfmpeOr it will be much worse20:10:54
@alexfmpe:matrix.orgalexfmpedivTw [T.w (3/4), T.p 4]20:11:18
@alexfmpe:matrix.orgalexfmpeif one could have a TH pass or whatever typecheck the string literals, that'd be interesting20:12:51
@riley:badat.dev@riley:badat.dev left the room.20:51:41
29 Nov 2024
@m1-s:matrix.orgm1-s changed their profile picture.02:28:30
@m1-s:matrix.orgm1-s changed their profile picture.02:29:51
@lassulus:lassul.uslassulus changed their profile picture.18:30:05
@prsteele:matrix.orgPatrick Steele

What's the canonical way to provide an overlay adding a Haskell package to

  1. A particular version of GHC
  2. All versions of GHC

In Python, we can pass packageOverrides to python.override; however, this approach doesn't compose nicely, as overlays don't preserve existing packageOverrides unless they explicitly do so. However, there is also the top-level pythonPackagesExtensions, which is a list of overlays to apply that compose naturally.

I can see how to add a Haskell package to the package set by passing overrides to pkgs.haskell.packages.${ghc}.override, but it seems like this would have the same pitfall as the python.override approach. Does Haskell have an equivalent extensions list approach?

18:53:03
@maralorn:maralorn.demaralorn.override { overrides = ... } is the recommended way. But I admit I am not sure about the compositionality.19:09:41
@maralorn:maralorn.demaralornI think we also have packageOverrides but it has the same problems.19:17:33
@prsteele:matrix.orgPatrick SteeleThanks19:54:58
30 Nov 2024
@sternenseemann:systemli.orgsterni (he/him) Patrick Steele: overrides defaults to haskell.packageOverrides by default, so changing that attribute applies something globally. Any changes to either of course need to be written in a way that preserve previous overrides via lib.composeExtensions if you care about that. 11:21:11
@sternenseemann:systemli.orgsterni (he/him)also note that overriding haskell package set is sort of buggy with a few unresolved issues like https://github.com/NixOS/nixpkgs/issues/23596011:22:52
@sternenseemann:systemli.orgsterni (he/him)I think some of the fix points used are wrong, I need to look into it at some point11:23:16
@vcunat:matrix.orgvcunat sterni: haskell-updates isn't a huge thing, so if you want, I believe it would be OK to be included in this special relatively quick staging-next iteration:
https://github.com/NixOS/nixpkgs/pull/360437
14:18:55
@sternenseemann:systemli.orgsterni (he/him) vcunat: that staging-next wasn't branched off from staging right? 15:28:44
@sternenseemann:systemli.orgsterni (he/him)The problem is that I merged staging into haskell-updates by accident at some point, so we can't restart the haskell-updates jobset whilst still sharing builds with staging-next. Because the jobset was deactivated for so long, I don't really have a good idea how many regressions there are at the moment.15:30:15
@sternenseemann:systemli.orgsterni (he/him)I suppose we could cherry pick some stuff onto staging-next?15:35:11

Show newer messages


Back to Room ListRoom Version: 6