haskellPackages.{alg,category,util}: work around Safe Haskell error

Workaround taken from https://github.com/strake/util.hs/issues/1
This commit is contained in:
sternenseemann 2022-03-20 00:39:39 +01:00
parent 177255c8aa
commit 6b25081893

View file

@ -1706,6 +1706,21 @@ self: super: {
# https://github.com/yesodweb/yesod/issues/1714
yesod-core = dontCheck super.yesod-core;
# DerivingVia is not allowed in safe Haskell
# https://github.com/strake/util.hs/issues/1
util = appendConfigureFlags [
"--ghc-option=-fno-safe-haskell"
"--haddock-option=--optghc=-fno-safe-haskell"
] super.util;
category = appendConfigureFlags [
"--ghc-option=-fno-safe-haskell"
"--haddock-option=--optghc=-fno-safe-haskell"
] super.category;
alg = appendConfigureFlags [
"--ghc-option=-fno-safe-haskell"
"--haddock-option=--optghc=-fno-safe-haskell"
] super.alg;
# Break out of overspecified constraint on QuickCheck.
algebraic-graphs = dontCheck super.algebraic-graphs;
attoparsec = doJailbreak super.attoparsec; # https://github.com/haskell/attoparsec/pull/168