!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

750 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.org150 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@sternenseemann:systemli.orgsterni (he/him)well it wouldn't have the discussed scoping issue17:05:26
@maralorn:maralorn.demaralorn toonn: Because it guarantees that a b come actually from lib.maintainers. 17:05:46
@sternenseemann:systemli.orgsterni (he/him)but I'm still sticking with [ lib.maintainers.a lib.maintainers.b] tbh17:05:48
@toonn:matrix.orgtoonn Wait, with doesn't shadow? 17:06:23
@maralorn:maralorn.demaralorn toonn: Nope, it doesn‘t. 17:06:31
@sternenseemann:systemli.orgsterni (he/him)it does not17:06:30
@Las:matrix.orgLasIf it did that would be horrible17:06:36
@sternenseemann:systemli.orgsterni (he/him)well both solutions to the issue are kinda bad tbh17:06:53
@Las:matrix.orgLas let x = y; in with z; [x] would have a different meaning depending on what z contains 17:07:07
@sternenseemann:systemli.orgsterni (he/him)the root problem is that as soon as with is involved you can never statically reason about bindings unfortunately17:07:17
@maralorn:maralorn.demaralornAnd even if it did. I also want to have assurance that I didn‘t accidentally pick an attribute that does not exist in `lib.maintainers17:07:25
@Las:matrix.orgLasthe root problem is that nix is untyped17:07:28
@maralorn:maralorn.demaralorn * And even if it did. I also want to have assurance that I didn‘t accidentally pick an attribute that does not exist in lib.maintainers. 17:07:30
@toonn:matrix.orgtoonn The types aren't even the biggest problem here. Nix needs better scoping primitives. 17:08:20
@maralorn:maralorn.demaralornmaralorn sets the topice to: „Welcome to the Nix & Haskell channel. Days since someone demanded static typing in Nix: 0"17:09:27
@maralorn:maralorn.demaralorn * maralorn sets the topic to: „Welcome to the Nix & Haskell channel. Days since someone demanded static typing in Nix: 0"17:09:37
@fgaz:matrix.orgfgaz
In reply to @sternenseemann:systemli.org
it does not
Whatt‽ isn't that the opposite of basically every ml-style language?
17:25:35
@fgaz:matrix.orgfgazI always assumed it shadowed17:25:46
@maralorn:maralorn.demaralorn fgaz: There is an issue about that and Eelcos reasoning why it does that is actually quite convincing. 17:26:26
@sternenseemann:systemli.orgsterni (he/him)the correct answer is ofc that with was a bad idea in the first place ;)17:26:53
@maralorn:maralorn.demaralornI think the main advantage of with not shadowing is, that you can never break code by introducing a new value into the withed attrset.17:27:25
@fgaz:matrix.orgfgaz
In reply to @maralorn:maralorn.de
fgaz: There is an issue about that and Eelcos reasoning why it does that is actually quite convincing.
Do you have a link?
17:28:14
@maralorn:maralorn.demaralornSadly I don‘t and with is a terrible word to look for in an issues tracker.17:29:22
@maralorn:maralorn.demaralornwow. Nix has 100 open issues assigned to peti.^^17:30:18
@maralorn:maralorn.demaralorn(ofc I am wildely exagerating it’s actually only 98.)17:30:46
@Las:matrix.orgLas
In reply to @sternenseemann:systemli.org
aeson should already be compiled I'm pretty sure
nix build github:NixOS/nixpkgs?rev=7191381b24b511017207205e2c8625a91ccea5cf#legacyPackages.aarch64-linux.haskell.packages.ghc901.aeson builds it locally for me
20:02:59
@Las:matrix.orgLasIt's this commit: https://github.com/NixOS/nixpkgs/commit/7191381b24b511017207205e2c8625a91ccea5cf20:03:21
@maralorn:maralorn.demaralorn Las: Hm, okay. sterni (he/him) the problem is: We don‘t have a ghc9 cabal2nix job. So we have nothing with a distribution-nixpkgs dependency. 20:07:52
@maralorn:maralorn.demaralornI guess we could/should introduce that job anyways?20:09:34
@maralorn:maralorn.demaralornWe could actually consider building either mergeable or even maintained for ghc9 …20:10:07

Show newer messages


Back to Room ListRoom Version: 6