mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
parent
43e35952c8
commit
cef324795e
3
.github/workflows/haskell-ci.yml
vendored
3
.github/workflows/haskell-ci.yml
vendored
@ -140,6 +140,9 @@ jobs:
|
|||||||
type: git
|
type: git
|
||||||
location: https://github.com/xmonad/xmonad
|
location: https://github.com/xmonad/xmonad
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
package xmonad-contrib
|
||||||
|
flags: +pedantic
|
||||||
EOF
|
EOF
|
||||||
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(xmonad-contrib)$/; }' >> cabal.project.local
|
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(xmonad-contrib)$/; }' >> cabal.project.local
|
||||||
cat cabal.project
|
cat cabal.project
|
||||||
|
3
.github/workflows/stack.yml
vendored
3
.github/workflows/stack.yml
vendored
@ -99,4 +99,5 @@ jobs:
|
|||||||
stack test \
|
stack test \
|
||||||
--fast --no-terminal \
|
--fast --no-terminal \
|
||||||
--stack-yaml=${{ matrix.yaml }} \
|
--stack-yaml=${{ matrix.yaml }} \
|
||||||
--resolver=${{ matrix.resolver }} --system-ghc
|
--resolver=${{ matrix.resolver }} --system-ghc \
|
||||||
|
--flag=xmonad-contrib:pedantic
|
||||||
|
@ -5,3 +5,7 @@ apt:
|
|||||||
libxinerama-dev
|
libxinerama-dev
|
||||||
libxrandr-dev
|
libxrandr-dev
|
||||||
libxss-dev
|
libxss-dev
|
||||||
|
|
||||||
|
raw-project
|
||||||
|
package xmonad-contrib
|
||||||
|
flags: +pedantic
|
||||||
|
@ -41,10 +41,10 @@ source-repository head
|
|||||||
flag use_xft
|
flag use_xft
|
||||||
description: Use Xft to render text
|
description: Use Xft to render text
|
||||||
|
|
||||||
flag testing
|
flag pedantic
|
||||||
description: Testing mode
|
description: Be pedantic (-Werror and the like)
|
||||||
manual: True
|
|
||||||
default: False
|
default: False
|
||||||
|
manual: True
|
||||||
|
|
||||||
library
|
library
|
||||||
build-depends: base >= 4.9 && < 5,
|
build-depends: base >= 4.9 && < 5,
|
||||||
@ -61,19 +61,21 @@ library
|
|||||||
xmonad >= 0.15 && < 0.16,
|
xmonad >= 0.15 && < 0.16,
|
||||||
utf8-string
|
utf8-string
|
||||||
|
|
||||||
ghc-options: -fwarn-tabs -Wall -Wno-unused-do-bind -Wno-unused-imports
|
ghc-options: -Wall -Wno-unused-do-bind
|
||||||
|
|
||||||
|
if flag(pedantic)
|
||||||
|
ghc-options: -Werror -Wwarn=deprecations
|
||||||
|
|
||||||
-- Keep this in sync with the oldest version in 'tested-with'
|
-- Keep this in sync with the oldest version in 'tested-with'
|
||||||
if impl(ghc <= 8.4.4)
|
if impl(ghc > 8.4.4)
|
||||||
ghc-options: -Werror=unused-imports
|
-- don't treat unused-imports warning as errors, they may be necessary
|
||||||
|
-- for compatibility with older versions of base (or other deps)
|
||||||
|
ghc-options: -Wwarn=unused-imports
|
||||||
|
|
||||||
if flag(use_xft)
|
if flag(use_xft)
|
||||||
build-depends: X11-xft >= 0.2
|
build-depends: X11-xft >= 0.2
|
||||||
cpp-options: -DXFT
|
cpp-options: -DXFT
|
||||||
|
|
||||||
if flag(testing)
|
|
||||||
ghc-options: -fwarn-tabs -Werror
|
|
||||||
|
|
||||||
exposed-modules: XMonad.Actions.AfterDrag
|
exposed-modules: XMonad.Actions.AfterDrag
|
||||||
XMonad.Actions.BluetileCommands
|
XMonad.Actions.BluetileCommands
|
||||||
XMonad.Actions.Commands
|
XMonad.Actions.Commands
|
||||||
@ -417,3 +419,13 @@ test-suite tests
|
|||||||
, utf8-string
|
, utf8-string
|
||||||
, xmonad >= 0.15 && < 0.16
|
, xmonad >= 0.15 && < 0.16
|
||||||
cpp-options: -DTESTING
|
cpp-options: -DTESTING
|
||||||
|
ghc-options: -Wall -Wno-unused-do-bind
|
||||||
|
|
||||||
|
if flag(pedantic)
|
||||||
|
ghc-options: -Werror -Wwarn=deprecations
|
||||||
|
|
||||||
|
-- Keep this in sync with the oldest version in 'tested-with'
|
||||||
|
if impl(ghc > 8.4.4)
|
||||||
|
-- don't treat unused-imports warning as errors, they may be necessary
|
||||||
|
-- for compatibility with older versions of base (or other deps)
|
||||||
|
ghc-options: -Wwarn=unused-imports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user