!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 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.org145 Servers

Load older messages


SenderMessageTime
19 Feb 2025
@alex:tunstall.xyzAlex
$ /nix/store/pig9c96ln4z91ds4d37iybvj6jzsghq3-microhs-0.11.7.1/bin/mhs --version
MicroHs, version 0.11.7.1, combinator file version v7.0
$ /nix/store/pig9c96ln4z91ds4d37iybvj6jzsghq3-microhs-0.11.7.1/bin/mcabal --version
MicroCabal 0.5.0.0

Off to a good start.
I'll try building Hadrian next, but if it's too incompatible I'll try 9.4 or older with Make.

16:30:54
20 Feb 2025
@angerman:matrix.organgerman
In reply to @sternenseemann:systemli.org
yeah, I'm very interested in what hsyl20 is working on / John has been working towards upstream as well. I've been holding out for a long time for something like that to materialize or all the hadrian regressions being fixed. The latter was probably never going to happen. Now the time has come where we can no longer backpin everything to 9.4 where hadrian doesn't agree with us, so I'll have to bite the bullet and figure a way to do this stuff with hadrian for now. Currently trying to find a way to do this without tricking hadrian into using the native logic, though I may just give up and do something similar to installStage1
You seem to have given him the impression that getting rid of Hadrian is nothing anyone wants.
23:20:16
@sternenseemann:systemli.orgsterni (he/him)then something got lost in communication :)23:24:23
@maralorn:maralorn.demaralorn
In reply to @angerman:matrix.org
You seem to have given him the impression that getting rid of Hadrian is nothing anyone wants.
Whoever got that impression must have caught weird glimpses of sterni. I can assure that sterni complains about hadrian a lot.
23:24:41
@sternenseemann:systemli.orgsterni (he/him) angerman: I felt like this was the most valuable immediate feedback I could give at the time since I assumed this was probably something people that aren't packaging GHC wouldn't immediately think about. Though, on reflection, it was maybe worded too strongly: Even if cabal-install is annoying to bootstrap; if the new build system is simpler, easier to change and has less undercooked areas it'd be much better than hadrian. 23:28:55
@sternenseemann:systemli.orgsterni (he/him)I still want to look at the actual implementation to figure out how bespoke the usage of cabal-install is23:30:43
@angerman:matrix.organgermanI'm being faced with "why are we doing this even? Hadrian is working perfectly fine, no one (link to issue) wants this".23:37:51
@angerman:matrix.organgerman😅23:38:00
@angerman:matrix.organgerman Untangling this mess of ghc and hadrian's symbiotic relationship should result in (a) better separation of conerns. (b) better cabal-install. I do not say we will not need to make cabal-install better, of course we do, but let's stop sinking time into hadrian, that could be used to improve cabal for everyone, not jsut some bespoke build system for GHC, which is also very atrocious. 23:39:46
21 Feb 2025
@alexfmpe:matrix.orgalexfmpe angerman: sterni with https://github.com/NixOS/nixpkgs/pull/383528 possibly being the last step in the nixpkgs-js-backend track, I'm thinking about messing with mobile soon
I ran into the TH issue before on https://github.com/NixOS/nixpkgs/pull/355543 and am wondering how to address that
01:50:37
@alexfmpe:matrix.orgalexfmpeIIUC haskell.nix does target TH via qemu01:50:49
@alexfmpe:matrix.orgalexfmpewhereas reflex-platform, even in its haskell.nix based rewrite, does host TH with some splices plugin or something01:51:38
@alexfmpe:matrix.orgalexfmpeI'd like to get at least one of them in nixpkgs, but don't know how they compare01:52:37
@alexfmpe:matrix.orgalexfmpe cc John Ericson 01:53:51
@Ericson2314:matrix.orgJohn Ericson alexfmpe: IMO if the staging iports things lands 01:58:35
@Ericson2314:matrix.orgJohn Ericsonthe non-jank version of obsidian's splicing patch becomes possible01:58:45
@Ericson2314:matrix.orgJohn Ericsonand then that is kind of a tie breaker event01:58:58
@Ericson2314:matrix.orgJohn Ericsonthat makes it better than the external interpreter01:59:08
@angerman:matrix.organgerman Template Haskell is an absolute train wreck. The qemu approach is the one that is the most conservative. Cross splicing under TH conditions is potentially dangerous across architectures. It also assumes you have a build native equivalent for all host libraries. 02:03:24
@angerman:matrix.organgerman Cross splicing will work most of the time though. 02:03:48
@angerman:matrix.organgerman It is bound to fail if you build system is 64 bit and target is 32bit and you end up embedding Word sizes and similar. For the JS backend though, I don’t think we use qemu at all. It’s basically still the th runner approach with node. 02:05:33
@angerman:matrix.organgermanI will note that for android, we have a fairly big PR, that tries to fix a lot of issues.02:08:16
@angerman:matrix.organgermanhttps://github.com/input-output-hk/haskell.nix/pull/187402:09:00
@angerman:matrix.organgermanOne neat thing with the iserv appraoch is that it lays the groundwork of remote debugging. So having that work is important (to me).02:09:36
@angerman:matrix.organgerman alexfmpe: good job on the windows cross stuff! Just don't expect to get 8.10 to work if you ever try. And haskell.nix has patches to keep MSVCRT alive (for now). 02:11:36
@alexfmpe:matrix.orgalexfmpeoh yeah windows was more of a "wonder what state that thing is in" adventure02:17:34
@alexfmpe:matrix.orgalexfmpeyeah this creeps me out a bit in the abscence of pure template haskell02:20:25
@alexfmpe:matrix.orgalexfmpe* yeah this creeps me out a bit in the absence of pure template haskell02:20:31
@angerman:matrix.organgermanTH has unrestricted IO. It should be burned in fire. But it is what it is... ab absolute abomination and very few who understand how bad it is.02:21:13
@Ericson2314:matrix.orgJohn Ericson I agree in theory but we haven't gotten bit yet IIRC 02:30:30

Show newer messages


Back to Room ListRoom Version: 6