!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

743 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org148 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Sep 2025
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
did you have to patch it for Hugs support?
Nope, this is already something Lennart has sorted out.
Though I did, amusingly, have to patch Hugs because it was broken in the Nixpkgs commit I started from (someone else wrote that patch, so no effort on my part).
21:38:44
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
have you talked with Lennart about this?
I don't think so, but I will try and upstream whatever improvements/fixes I make along the way.
(And I expect there to be a lot.)
21:39:19
@emilazy:matrix.orgemilywell AIUI the upstream build system either compiles the C blob or uses GHC right?21:43:23
@emilazy:matrix.orgemilyso adding a path to bootstrap via Hugs would be a good step21:43:36
@emilazy:matrix.orgemilyand yeah, having to keep Hugs working is part of the burden here...21:44:03
@emilazy:matrix.orgemilyas C codebases unmaintained for 20 years are no fun to keep going21:44:20
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
well AIUI the upstream build system either compiles the C blob or uses GHC right?
Not necessarily: https://github.com/augustss/MicroHs?tab=readme-ov-file#bootstrapping-with-hugs
(I also delete the C blobs to be extra sure I don't accidentally use them.)
21:45:29
@emilazy:matrix.orgemilyah. but that's a separate branch of MicroHs?21:46:21
@emilazy:matrix.orgemilyseems like it'd be ideal for it to be merged with the main one but I guess worst case it's just another hop21:46:43
@alex:tunstall.xyzAlex Yes, it's another hop, but the MicroHs build is under 5min anyway, so I'm not concerned.
It's a good idea to build a stage 2 mhs anyway.
21:53:37
@emilazy:matrix.orgemilyI do worry a bit about the part where he says the resulting binaries are 10x slower than GHC.21:55:36
@emilazy:matrix.orgemilyit's not exactly fast to bootstrap GHC to begin with21:55:49
@emilazy:matrix.orgemilybut I guess targeted optimization work could be applied21:56:08
8 Sep 2025
@romildo:matrix.orgromildo joined the room.21:04:44

Show newer messages


Back to Room ListRoom Version: 6