From 14f943126394b653a6ebac215d5722eb3fe4f6c5 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Mon, 24 Aug 2020 19:18:43 +0800 Subject: Depend on semigroups only on GHC < 8.0 (#296) They are not needed on newer GHC. --- stylish-haskell.cabal | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stylish-haskell.cabal b/stylish-haskell.cabal index 2cbb77e..228cab5 100644 --- a/stylish-haskell.cabal +++ b/stylish-haskell.cabal @@ -63,11 +63,14 @@ Library file-embed >= 0.0.10 && < 0.1, haskell-src-exts >= 1.18 && < 1.24, mtl >= 2.0 && < 2.3, - semigroups >= 0.18 && < 0.20, syb >= 0.3 && < 0.8, text >= 1.2 && < 1.3, HsYAML-aeson >=0.2.0 && < 0.3, HsYAML >=0.2.0 && < 0.3 + + if impl(ghc < 8.0) + Build-depends: + semigroups >= 0.18 && < 0.20 Executable stylish-haskell Ghc-options: -Wall -- cgit v1.2.3