!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
21 Feb 2025
@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
@Ericson2314:matrix.orgJohn Ericson angerman: I hope that the matthew thing will mean that we can serialize and deserialize core too 02:31:40
@Ericson2314:matrix.orgJohn Ericsonoption of saving and loading after pipeline stages02:31:52
@Ericson2314:matrix.orgJohn Ericsonthis will be really good for finding bugs in GHC02:31:59
@alexfmpe:matrix.orgalexfmpewell, I don't really need an answer for applying to nixpkgs today, more like knowing towards what is worth contributing over a long term02:42:50
@alexfmpe:matrix.orgalexfmpeshort term I'll just use haskell.nix or reflex-platform02:43:14
@alexfmpe:matrix.orgalexfmpe* well, I don't really need an answer for applying to nixpkgs today, more like knowing what is worth contributing towards over the long term02:43:35
@angerman:matrix.organgerman Well, having proper serialization for each intermediate step would be beneficial. 03:04:22
@alex:tunstall.xyzAlex

Several days and >2kLoC of patching later

$ nix-build -A haskell.packages.microhs-0_11_7_1.binary --no-out-link -j1
/nix/store/xrb8cx4mcq209z06p4v4cjb0nfnjhlzx-binary-0.8.9.2

And I'm not even sure that the package actually works properly. 🙃

22:49:06
@janus.troelsen:matrix.orgJanus
In reply to @alex:tunstall.xyz

Several days and >2kLoC of patching later

$ nix-build -A haskell.packages.microhs-0_11_7_1.binary --no-out-link -j1
/nix/store/xrb8cx4mcq209z06p4v4cjb0nfnjhlzx-binary-0.8.9.2

And I'm not even sure that the package actually works properly. 🙃

so now you can build arbitrary haskellPackages with microCabal?
23:50:34
22 Feb 2025
@alex:tunstall.xyzAlexYes, but most don't build because of core dependencies failing (like mtl, which I'm currently trying to fix).00:15:20
@alex:tunstall.xyzAlex I might just try to skip Hadrian altogether and try building ghc-bin with custom build scripts.
Fixing all of Hadrian's dependencies is much tougher than building GHC's dependencies.
00:17:49
@emilazy:matrix.orgemilyyou're saying Nixpkgs gets to maintain yet another GHC build system? :)00:26:29
@alex:tunstall.xyzAlexUnfortunately, that may be the sanest way of booting GHC from source.00:30:16
@emilazy:matrix.orgemilyit would be cool if we beat Guix to the punch for a from-source GHC bootstrap (not sure if they've already incorporated MicroHs)00:30:46
@alex:tunstall.xyzAlexSolution: upstream it to GHC :D00:30:46
@janus.troelsen:matrix.orgJanus
In reply to @alex:tunstall.xyz
Unfortunately, that may be the sanest way of booting GHC from source.
but doesn't GHC have DataKinds and Type families? how could microhs compile that?
03:38:05
@janus.troelsen:matrix.orgJanusI mean the source itself uses those extensions03:38:42
@emilazy:matrix.orgemilyI assumed it would go via old GHC.03:50:31
@emilazy:matrix.orgemilybtw, it's not clear to me how MicroHs really achieves "source bootstrapping"03:52:33
@emilazy:matrix.orgemilyit seems like you're still basically running a binary blob of combinators derived from Haskell source?03:52:43
@janus.troelsen:matrix.orgJanus you can compile it with hugs 03:52:49
@emilazy:matrix.orgemilyit's just that there's a simple C runtime to run that binary blob03:52:52

Show newer messages


Back to Room ListRoom Version: 6