about summary refs log blame commit diff
path: root/third_party/overlays/haskell/default.nix
blob: d6a178a1e0bb5db0e515f96a69c4af02a57e51b9 (plain) (tree)
1
2
3
4
5
6
7
8


                                                                    

                                                
 
                                                         
 



                                                              




                                                    
 
# Defines an overlay for overriding Haskell packages, for example to
# avoid breakage currently present in nixpkgs or to modify package
# versions.

{ ... }: # This file needs nothing from readTree

self: super: # overlay parameters for the nixpkgs overlay

let
  overrides = hsSelf: hsSuper: with super.haskell.lib; rec {
    generic-arbitrary = appendPatch hsSuper.generic-arbitrary
      [ ./patches/generic-arbitrary-export-garbitrary.patch ];
  };
in {
  haskellPackages = super.haskellPackages.override {
    inherit overrides;
  };
}