!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

728 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

You have reached the beginning of time (for this room).


SenderMessageTime
17 Jan 2025
@bowuigi---now-more-based:kde.org@bowuigi---now-more-based:kde.orgYAGNI?17:38:43
18 Jan 2025
@b:chreekat.netchreekat @bowuigi---now-more-based:kde.org: you aren't gonna need it 08:47:05
@b:chreekat.netchreekat= avoid early abstraction as you would avoid early optimization 08:48:05
@bowuigi---now-more-based:kde.org@bowuigi---now-more-based:kde.orgAh, yeah those seem in conflict08:50:58
@alex:tunstall.xyzAlex
In reply to @b:chreekat.net
DRY is in frequent conflict with YAGNI

DRY: don't write the same thing twice
YAGNI: don't define something you don't (yet) need

I can see how they conflict when applied loosely, but applying DRY carefully should be OK.

13:27:32
@magic_rb:matrix.redalder.orgmagic_rb if i need lens_5_3_3 is there a way to overrideAttrs lens_5_3_2 into it? 22:43:57
@magic_rb:matrix.redalder.orgmagic_rbi tried just changing the version, but that unsurprisingly didnt work22:44:13
@magic_rb:matrix.redalder.orgmagic_rbchanging the src?22:45:54
@implicit_operative:matrix.orgymeister

Maybe something like this?

lens_5_3_3 = self.callHackageDirect {
  pkg = "HaskellNet-SSL";
  ver = "5.3.3";
  sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
} {};
22:46:10
@implicit_operative:matrix.orgymeister *

Maybe something like this?

lens_5_3_3 = self.callHackageDirect {
  pkg = "lens";
  ver = "5.3.3";
  sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
} {};
22:46:20
@implicit_operative:matrix.orgymeister *

Maybe something like this?

lens_5_3_3 = callHackageDirect {
  pkg = "lens";
  ver = "5.3.3";
  sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
} {};
22:46:36
@implicit_operative:matrix.orgymeister *

Maybe something like this?

lens_5_3_3 = pkgs.haskell.lib.callHackageDirect {
  pkg = "lens";
  ver = "5.3.3";
  sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
} {};
22:46:51
@magic_rb:matrix.redalder.orgmagic_rbhow does it know the deps? thats smells like IFD22:47:04
@magic_rb:matrix.redalder.orgmagic_rbor is a giant FOD, im fine with that22:47:22
@magic_rb:matrix.redalder.orgmagic_rboh, changing src did it, well, it still thought its compiling lens 5.3.2, but hey, if it works it works22:48:07

Show newer messages


Back to Room ListRoom Version: 6