From 6177f6f017d635e3acbac09dc061f4dcaf3320cc Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 12 Jul 2018 00:40:33 +0100 Subject: Dropped support for GHC 7.x --- xmobar.cabal | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 92dd44f..86d5bc5 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -1,5 +1,5 @@ name: xmobar -version: 0.26 +version: 0.27 homepage: http://xmobar.org synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. @@ -46,7 +46,7 @@ test-suite XmobarTest Plugins.Monitors.Uptime, Plugins.Monitors.Bright, Plugins.Monitors.CatInt build-depends: - base == 4.*, + base >= 4.9.1.0, hspec == 2.*, containers, regex-compat, @@ -159,7 +159,7 @@ executable xmobar extra-libraries: Xrandr Xrender build-depends: - base == 4.*, + base >= 4.9.1.0, containers, regex-compat, process, @@ -176,6 +176,13 @@ executable xmobar parsec-numbers >= 0.1.0, stm >= 2.3 && < 2.5 + if impl(ghc < 8.0.2) + -- Disable building with GHC before 8.0.2. + -- Due to a cabal bug, do not use buildable: False, + -- but instead give it an impossible constraint. + -- See: https://github.com/haskell-infra/hackage-trustees/issues/165 + build-depends: unsupported-ghc-version > 1 && < 1 + if flag(with_threaded) -- -threaded is a workaround for 100% CPU busy loop -- (http://hackage.haskell.org/trac/ghc/ticket/4934). -- cgit v1.2.3