From ea075213baa7e6fe6ed519a6b5c70e7ae89a56a1 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 16 Sep 2022 00:27:37 +0100 Subject: linting and version bump --- src/Xmobar/X11/CairoDraw.hs | 2 +- xmobar.cabal | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Xmobar/X11/CairoDraw.hs b/src/Xmobar/X11/CairoDraw.hs index feb4448..102e4ad 100644 --- a/src/Xmobar/X11/CairoDraw.hs +++ b/src/Xmobar/X11/CairoDraw.hs @@ -238,7 +238,7 @@ drawBoxes dctx surf ((from, to, b):(from', to', b'):bxs) = if to < from' || b /= b' then do drawBoxes' dctx surf (from, to, b) drawBoxes dctx surf $ (from', to', b'):bxs - else do drawBoxes dctx surf $ (from, to', b'):bxs + else drawBoxes dctx surf $ (from, to', b'):bxs drawBoxes dctx surf [bi] = drawBoxes' dctx surf bi diff --git a/xmobar.cabal b/xmobar.cabal index 3bf1dd6..b973c5a 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -1,5 +1,5 @@ name: xmobar -version: 0.44.2 +version: 0.45 homepage: https://codeberg.org/xmobar/xmobar synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. @@ -32,12 +32,12 @@ source-repository head location: git://codeberg.org/xmobar/xmobar.git branch: master -flag with_xrender - description: Use XRender for alpha background pseudo-transparency. - flag with_cairo description: Use Cairo and Pango to render anti-aliased text. +flag with_xrender + description: Use XRender for alpha background pseudo-transparency. + flag with_inotify description: inotify support (modern Linux only). Required for the Mail and MBox plugins. default: False @@ -359,9 +359,6 @@ executable xmobar ghc-options: -with-rtsopts=-V0 if flag(with_threaded) - -- -threaded is a workaround for 100% CPU busy loop - -- (http://hackage.haskell.org/trac/ghc/ticket/4934). - -- See also comments in https://codeberg.org/xmobar/xmobar/pulls/36 ghc-options: -threaded cpp-options: -DTHREADED_RUNTIME @@ -425,8 +422,7 @@ test-suite XmobarTest benchmark xmobarbench type: exitcode-stdio-1.0 main-is: main.hs - hs-source-dirs: - bench + hs-source-dirs: bench ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind -O2 build-depends: base, gauge, mtl, time, xmobar default-language: Haskell2010 -- cgit v1.2.3