!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

693 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 infrastructure139 Servers

Load older messages


SenderMessageTime
17 Jan 2025
@nrs-status:matrix.orgthirdofmay18081814goyai just want the simplest of typing systems, god please lord give me types I will die15:10:31
@maralorn:maralorn.demaralornWhich can probably be used as a library to do nix stuff in Haskell.15:10:32
@maralorn:maralorn.demaralornYou might wanna have a look how far nickel-lang.org is usable as a nix drop-in.15:11:11
@nrs-status:matrix.orgthirdofmay18081814goyaoh two very good suggestions15:11:24
@nrs-status:matrix.orgthirdofmay18081814goyathank you!15:11:25
@maralorn:maralorn.demaralornBut while I totally share your pain I am quite sceptical that any replacement is viable for most use cases without significant effort at this point.15:12:24
@nrs-status:matrix.orgthirdofmay18081814goyamodeling an attempt to do this on how typescript did it might give a shimmer of hope15:13:30
@nrs-status:matrix.orgthirdofmay18081814goyaor at the very least I want to delegate any processing of lists and attribute sets to another language15:14:22
@nrs-status:matrix.orgthirdofmay18081814goya but one thing that is absolutely unacceptable to me is the ... input 15:16:55
@nrs-status:matrix.orgthirdofmay18081814goyawhich wouldn't be necessary if functions could share type information at their call location15:17:39
@profpatsch:augsburg.oneProfpatschnrs-status: We’ve all been there, it’s the bargaining phase15:40:39
@profpatsch:augsburg.oneProfpatschdepression is next! fun!15:40:55
@profpatsch:augsburg.oneProfpatschnrs-status: fwiw https://github.com/openlab-aux/vuizvui/blob/master/pkgs/profpatsch/xdg-open/default.nix#L109-L12015:41:53
@profpatsch:augsburg.oneProfpatschhttps://github.com/openlab-aux/vuizvui/blob/master/pkgs/profpatsch/importPurescript.nix#L115:42:03
@profpatsch:augsburg.oneProfpatschit works pretty ok15:42:11
@profpatsch:augsburg.oneProfpatschjust make sure you use a static binary release of purs-to-nix, otherwise your eval time goes into the gutter with IfD15:43:11
@nrs-status:matrix.orgthirdofmay18081814goyaah neat! thanks for the references, I'll be looking at what they've done15:43:46
@nrs-status:matrix.orgthirdofmay18081814goyaah yeah that's the compiler maralorn was talking about, I haven't had time to give it a look, will begin reading15:44:11
@profpatsch:augsburg.oneProfpatschnrs-status: it’s essentially a minimal working purescript-to-nix integration15:44:35
@profpatsch:augsburg.oneProfpatschYou can just copy most of it and adapt15:44:47
@profpatsch:augsburg.oneProfpatsch(just note that it’s GPLv3, but since I’m the sole author I give you permission to relicense as you see fit)15:45:16
@nrs-status:matrix.orgthirdofmay18081814goyaoh you're the author? very cool stuff15:45:52
@nrs-status:matrix.orgthirdofmay18081814goyawill definitely ping you about this (if you're interested), because I am in it for the long ride15:46:26
@nrs-status:matrix.orgthirdofmay18081814goya* will definitely ping you about this (if you're interested), because I am in it for the long run15:46:41
@profpatsch:augsburg.oneProfpatschnrs-status: Well, it’d be interesting if somebody tries to really use this in anger15:47:41
@profpatsch:augsburg.oneProfpatschOriginally, this used the same idea with dhall-to-nix, but dhall is kind of a lost cause ino15:47:59
@profpatsch:augsburg.oneProfpatsch*imo15:48:01
@profpatsch:augsburg.oneProfpatschpurescript is not great, but works better15:48:15
@profpatsch:augsburg.oneProfpatschI’d just advise strongly against trying to compile the purescript stdlib to nix15:48:37
@profpatsch:augsburg.oneProfpatschand instead use it as a very simple nix frontend with typing15:48:48

Show newer messages


Back to Room ListRoom Version: 6