about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-11-24 12:48:03 +0100
committerPeter Simons <simons@cryp.to>2015-11-24 12:48:03 +0100
commit405fda497ae1943c6ca3dab783687a01ff63c04f (patch)
tree61b325a413d775fafd3ae803a6a7927513211f7c /pkgs/development/haskell-modules/default.nix
parent8bdc73caabe878bbf953b1c5c0f3e5259c02076e (diff)
downloadnixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar.gz
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar.bz2
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar.lz
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar.xz
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.tar.zst
nixlib-405fda497ae1943c6ca3dab783687a01ff63c04f.zip
lib: document fix and add fix', extends functions
These functions used to live in pkgs/development/haskell-modules/default.nix,
but they are generic, really, and should be easily accessible to everyone.
Diffstat (limited to 'pkgs/development/haskell-modules/default.nix')
-rw-r--r--pkgs/development/haskell-modules/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix
index eda63a426746..a88396beb4d5 100644
--- a/pkgs/development/haskell-modules/default.nix
+++ b/pkgs/development/haskell-modules/default.nix
@@ -6,9 +6,9 @@
 
 let
 
-  fix = f: let x = f x // { __unfix__ = f; }; in x;
+  fix = stdenv.lib.fix';
 
-  extend = rattrs: f: self: let super = rattrs self; in super // f self super;
+  extend = stdenv.lib.flip stdenv.lib.extends;
 
   haskellPackages = self:
     let