haskell.packages.ghc8{107,84}.OneTuple: provide hashable

We need to manually simulate the following conditional in the cabal
file:

    if impl(ghc >=9.0)
      build-depends: ghc-prim

    else
      build-depends: hashable >=1.3.5.0 && <1.5
This commit is contained in:
sternenseemann 2022-02-25 21:15:57 +01:00
parent b4e2052364
commit 1aa02b5c38
2 changed files with 10 additions and 0 deletions

View file

@ -105,4 +105,9 @@ self: super: {
# weeder 2.3.0 no longer supports GHC 8.10
weeder = doDistribute (doJailbreak self.weeder_2_2_0);
# OneTuple needs hashable instead of ghc-prim for GHC < 9
OneTuple = super.OneTuple.override {
ghc-prim = self.hashable;
};
}

View file

@ -142,4 +142,9 @@ self: super: {
# https://github.com/haskell/haskell-language-server/issues/2728
hls-hlint-plugin = null;
});
# OneTuple needs hashable instead of ghc-prim for GHC < 9
OneTuple = super.OneTuple.override {
ghc-prim = self.hashable;
};
}