!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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.org143 Servers

Load older messages


SenderMessageTime
7 Sep 2025
@alex:tunstall.xyzAlex Last I checked, the main limitation was DataKinds being missing + a lot of GHC-specific code like the fast strings. 20:24:09
@alex:tunstall.xyzAlexI'm willing to rewrite the type checker if necessary, and the GHC problems can probably be fixed with a lot of tedious CPP.20:25:06
@nolduakali:matrix.orgAri Ade Supriyatna joined the room.20:26:56
@artem.types:matrix.orgArtemoften times, GHC HEAD can't be compiled with a GHC just out of the support window (last three releases or so). I'd expect it to be a non-trivial projecct to make MHS compile GHC..20:32:24
@artem.types:matrix.orgArtem* often times, GHC HEAD can't be compiled with a GHC just out of the support window (last three releases or so). I'd expect it to be a non-trivial project to make MHS compile GHC...20:32:37
@emilazy:matrix.orgemilydoes GHC not use type families or generics?21:02:18
@emilazy:matrix.orgemily or implicit parameters or magic hash? 21:02:31
@emilazy:matrix.orgemilyhttps://discourse.haskell.org/t/microhs-and-hackage/12916/621:02:36
@emilazy:matrix.orgemilysounds unlikely to me21:02:43
@alex:tunstall.xyzAlexCan't know how much effort it is until someone actually tries.21:16:57
@emilazy:matrix.orgemilywell21:22:32
@maralorn:maralorn.demaralornLooking at all the hype that MicroHS is getting I canโ€™t imagine that no one is thinking about it. ๐Ÿ˜„21:22:44
@emilazy:matrix.orgemilypeople tried to get even ancient GHC building with Hugs without success21:22:45
@emilazy:matrix.orgemilyso my prior is at least not totally uninformed21:23:03
@emilazy:matrix.orgemilythe sad thing about MicroHs is that AFAICT it won't offer a true from-source bootstrap21:23:21
@emilazy:matrix.orgemilyjust a more portable blob one21:23:27
@emilazy:matrix.orgemilysince you still must go through an unauditable machine-generated C file to start with21:23:52
@emilazy:matrix.orgemilymaybe someone could implement an interpreter to run MicroHs to start it off though ๐Ÿซ 21:24:16
@emilazy:matrix.orgemily

https://www.joachim-breitner.de/blog/802-More_thoughts_on_a_bootstrappable_GHC

https://elephly.net/posts/2017-01-09-bootstrapping-haskell-part-1.html

21:25:12
@emilazy:matrix.orgemilysome background reading for anyone considering embarking on this task21:25:25
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
the sad thing about MicroHs is that AFAICT it won't offer a true from-source bootstrap
Why not?
It runs fine under Hugs. I've already gotten that working.
21:28:07
@emilazy:matrix.orgemilythat's promising then21:28:22
@emilazy:matrix.orgemilyalthough it also means maintaining Hugs to keep it working with newer C compilers :)21:28:45
@emilazy:matrix.orgemilybut might not be too bad21:28:58
@emilazy:matrix.orgemilythe Discourse post I linked implies to me that extensions like implicit parameters are WONTFIX, so there may be politics involved in getting GHC to stop using extensions that MicroHs doesn't want21:29:48
@alex:tunstall.xyzAlexI'd rather avoid it, but forking or preprocessing to handle such extensions isn't out of the question.21:30:43
@emilazy:matrix.orgemilydoes Hugs even work on x86-64? ๐Ÿค”21:30:55
@emilazy:matrix.orgemilythat's a pretty large indefinite future workload IMO21:31:14
@emilazy:matrix.orgemilyunless you just accept the bootstrap chain getting longer and longer forever21:31:30
@emilazy:matrix.orgemilywhich has big issues itself21:31:36

Show newer messages


Back to Room ListRoom Version: 6