Fetch patch for data-diverse from GitHub repo

My merge request was merged so the patch is already in the repo.
This commit is contained in:
Viacheslav Lotsmanov 2022-07-29 02:15:18 +03:00
parent aece98a0e4
commit fac34c91b1
No known key found for this signature in database
GPG key ID: D276FF7467007335
2 changed files with 6 additions and 14 deletions

View file

@ -1,13 +0,0 @@
diff --git a/test/Data/Diverse/ManySpec.hs b/test/Data/Diverse/ManySpec.hs
index eb7203f..9672af8 100644
--- a/test/Data/Diverse/ManySpec.hs
+++ b/test/Data/Diverse/ManySpec.hs
@@ -305,7 +305,7 @@ spec = do
it "with duplicate fields has setter for unique fields 'amend''" $ do
let x = (5 :: Int) ./ False ./ 'X' ./ Just 'O' ./ (6 :: Int) ./ Just 'A' ./ nil
- amend' @ '[Bool, Char] x (True ./ 'B' ./ nil) `shouldBe`
+ amend' @'[Bool, Char] x (True ./ 'B' ./ nil) `shouldBe`
(5 :: Int) ./ True ./ 'B' ./ Just 'O' ./ (6 :: Int) ./ Just 'A' ./ nil
it "can be folded with 'Many' handlers using 'forMany' or 'collect'" $ do

View file

@ -73,7 +73,12 @@ let
data-diverse = data-diverse =
pkgsNew.lib.pipe haskellPackagesOld.data-diverse [ pkgsNew.lib.pipe haskellPackagesOld.data-diverse [
(haskellAddPatch pkgsNew ./nix/data-diverse.patch) # Patch for GHC 9.x support
(haskellAddPatch pkgsNew (pkgsNew.fetchpatch {
url = "https://github.com/louispan/data-diverse/commit/4033c90c44dab5824f76d64b7128bb6dea2b5dc7.patch";
sha256 = "sha256-d6bC1Z7uCLtYF3FXGzo3XNdRPQgeAUjL1RW1Tiv7MnM=";
}))
(haskellMarkUnbroken pkgsNew) (haskellMarkUnbroken pkgsNew)
]; ];