!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

660 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 infrastructure132 Servers

Load older messages


SenderMessageTime
10 Jun 2025
@alexfmpe:matrix.orgalexfmpein the meantime you should be able to workaround by using jsaddle-warp for reflex-dom15:14:35
@maralorn:maralorn.demaralornUh, probably an excellent idea anyway.15:27:18
@maralorn:maralorn.demaralornBuuut, I guess we shouldn’t do that in nixpkgs, should we? 😄15:30:38
@maralorn:maralorn.demaralornHuh, I wonder what is the correct way to detect that we are targeting js. ghc.isGhcjs does not exist anymore.15:37:58
@alexfmpe:matrix.orgalexfmpestdenv.hostPlatform.isGhcjs15:39:08
@alexfmpe:matrix.orgalexfmpebut in the reflex-platform case, I thought warp was the default jsaddle15:39:57
@alexfmpe:matrix.orgalexfmpehttps://github.com/reflex-frp/reflex-platform/blob/2e0d31bc1b565eed02a3848cde0e0dbc4f33a2d4/project/default.nix#L12015:39:58
@alexfmpe:matrix.orgalexfmpeer, or rather, in r-p there's a nix setting for it15:40:11
@alexfmpe:matrix.orgalexfmpeand in obelisk it was made the default15:40:16
@maralorn:maralorn.demaralornNope15:40:37
@maralorn:maralorn.demaralornstdenv.targetPlatform.isJavascript15:40:55
@alexfmpe:matrix.orgalexfmpewhat15:41:08
@alexfmpe:matrix.orgalexfmpeoh are you checking on the compiler or on the package?15:41:26
@alexfmpe:matrix.orgalexfmpebecause for the package it's https://github.com/NixOS/nixpkgs/blob/50015e7b86465fd5bd10d79ffe9567b4483d6279/pkgs/development/haskell-modules/generic-builder.nix#L2415:41:33
@maralorn:maralorn.demaralornon the compiler15:41:37
@maralorn:maralorn.demaralornAh, I see.15:41:45
@alexfmpe:matrix.orgalexfmpethen it's shifted15:42:08
@alexfmpe:matrix.orgalexfmpeso there it's targetPlatform.isGhcjs15:42:15
@alexfmpe:matrix.orgalexfmpebecause the compiler targets the platform the package it compiles is ran/hosted on15:43:27
@alexfmpe:matrix.orgalexfmpedid I allucinate this? could have sworn it was the case but can't find it15:43:55
@maralorn:maralorn.demaralornI probably bricked that logic anyway by removing the reflex-plattform overrides15:45:43
@maralorn:maralorn.demaralorn * 15:45:55
@alexfmpe:matrix.orgalexfmpehttps://github.com/reflex-frp/reflex-platform/commit/93cb8ec441ebac3d68a9f982a1aa3ca55eb509e115:45:57
@alexfmpe:matrix.orgalexfmpethis is probably what confused me15:46:00
@maralorn:maralorn.demaralornOkay good to know. Now I know how to solve this properly. 🙏15:47:18
@alexfmpe:matrix.orgalexfmpeprobably not, though I was just wondering if the reflex-dom package should even have the jsaddle switch logic 15:48:21
@alexfmpe:matrix.orgalexfmpeafter all, miso or whatever needs the exact same cabal if pyramid and cpp imports no?15:48:55
@alexfmpe:matrix.orgalexfmpe shouldn't there be a jsaddle-cross or whatever where you always import your run :: JSM () -> IO () or so 15:49:18
@alexfmpe:matrix.orgalexfmpeand what that ends up as depends on platform and/or flags to that jsaddle package15:50:20
@dmjio:matrix.orgdmjio changed their display name from dmjio to dmjio 🍜.17:04:02

Show newer messages


Back to Room ListRoom Version: 6