!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

681 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 infrastructure133 Servers

Load older messages


SenderMessageTime
30 Aug 2025
@dandart:matrix.orgUraraka ~ Ochaco changed their display name from data Void to Peri.15:31:02
@Las:matrix.org@Las:matrix.org left the room.22:01:28
31 Aug 2025
@lxsameer:matrix.orglxsameerhey folks, do nixpkgs contain the webassembly backend of GHC?17:38:15
@dandart:matrix.orgUraraka ~ Ochacomost of it, it just requires a little patching by this gitlab.haskell.org/haskell-wasm/ghc-wasm-meta17:39:00
@lxsameer:matrix.orglxsameerwhat's the package name?17:39:18
@maralorn:maralorn.demaralorn
In reply to @lxsameer:matrix.org
hey folks, do nixpkgs contain the webassembly backend of GHC?
Not really. no.
17:39:57
@dandart:matrix.orgUraraka ~ Ochaco normally I just do (builtins.getFlake "gitlab:haskell-wasm/ghc-wasm-meta?host=gitlab.haskell.org").packages.x86_64-linux.all_9_12 in a shell.nix 17:40:32
@dandart:matrix.orgUraraka ~ Ochaco a little patching later then I have wasm32-wasi-cabal, wasm32-wasi-ghc etc 17:41:13
@lxsameer:matrix.orglxsameerahhh, so that repo exports whatever is necessary for the wasm stuff. cool17:42:39
@dandart:matrix.orgUraraka ~ Ochacopretty much good enough for most stuff17:42:57
@maralorn:maralorn.demaralornThere is this https://github.com/ners/nix-wasm17:43:10
@maralorn:maralorn.demaralornAnd what peri posted should be enough to play around17:43:47
@dandart:matrix.orgUraraka ~ OchacoI couldn't figure out the benefit to that over ghc-wasm-meta17:44:12
@dandart:matrix.orgUraraka ~ Ochacoit imports ghc-wasm-meta and does some flakey things17:44:30
@dandart:matrix.orgUraraka ~ Ochacomaybe it's to make things nix-buildable? either way a full install with prefix will still build manually17:45:04
@lxsameer:matrix.orglxsameerPeri, i never tried any wasm related stuff on haskell. is it ok to use any prelude?17:45:13
@dandart:matrix.orgUraraka ~ OchacoI presume so, everything non-network-related seemed to work for me17:45:35
@dandart:matrix.orgUraraka ~ OchacoI wrote a reflex-dom app with it17:46:07
@dandart:matrix.orgUraraka ~ Ochacowth a load of servant in it17:46:22
@lxsameer:matrix.orglxsameercool cool. seems like i can handle my workload with it17:46:47
@maralorn:maralorn.demaralorn
In reply to @dandart:matrix.org
maybe it's to make things nix-buildable?
either way a full install with prefix will still build manually
Yes, it is to make things nix buildable.
17:46:50
@maralorn:maralorn.demaralornBut it's still very rough around the reges.17:48:16
@maralorn:maralorn.demaralorn * 17:48:26
@dandart:matrix.orgUraraka ~ OchacoI kind of gave up nix-building haskell projects because I wanted to keep up with hackage versions (and especially text 2.1.2) - I had to keep jailbreaking things but the package versions in nixpkgs unstable / haskell-updates were still very behind. I presume they were up to date with various stackage snapshots but I don't use stack as I end up missing updates. I ended up just doing it by getting only ghc and cabal through nix-shell, and then getting cabal to do everything cabal style. That way I can allow people who don't want to use nix be able to do things just as well with ghcup. hence haven't tried to nix-build any haskell bits in a good while.17:52:03
@maralorn:maralorn.demaralornYes, nixpkgs will lag behind, especially in the last year because we get to little help maintaining it. But very often not having the bleeding edge is fine for most usecases.18:22:12
@dandart:matrix.orgUraraka ~ Ochacothat's fair enough, I have contributed fixes to it before18:23:22
1 Sep 2025
@artem.types:matrix.orgArtemregarding https://github.com/NixOS/nixpkgs/pull/429810#issuecomment-3242423178 it's curious that the test suite hangs on "network client and server" (the last line) Something about network configuration on hydra machines?..13:46:14
@sternenseemann:systemli.orgsternieither that or related to load on those machines, hard to tell13:47:34
@sternenseemann:systemli.orgsterniI'll ask if they changed anything recently13:48:18
@sternenseemann:systemli.orgsternimaybe someone should try with Nix, I've used Lix13:50:14

Show newer messages


Back to Room ListRoom Version: 6