From e61a408e9d3ec32f2ac4a4906aaf003d86310c5d Mon Sep 17 00:00:00 2001 From: Felix Yan <felixonmars@archlinux.org> Date: Tue, 11 Aug 2020 17:40:27 +0800 Subject: [PATCH] Depend on semigroups only on GHC < 8.0 They are not needed on newer GHC. --- xmonad-contrib.cabal | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xmonad-contrib.cabal b/xmonad-contrib.cabal index 7aaef0fb..e68d719f 100644 --- a/xmonad-contrib.cabal +++ b/xmonad-contrib.cabal @@ -66,8 +66,9 @@ library unix, X11>=1.6.1 && < 1.10, xmonad >= 0.15 && < 0.16, - utf8-string, - semigroups + utf8-string + if impl(ghc < 8.0) + build-depends: semigroups if flag(use_xft) build-depends: X11-xft >= 0.2