1
0
Fork 0

Fix warnings

This commit is contained in:
Malte 2023-03-02 02:51:24 +01:00
parent 7e3e89b9ab
commit 25e6e1739d
2 changed files with 5 additions and 2 deletions

View file

@ -12,8 +12,9 @@
# Specify additional command line arguments
#
# - arguments: [--color, --cpp-simple, -XQuasiQuotes]
- arguments:
- -XRecursiveDo
- -XQuasiQuotes
# Control which extensions/flags/modules/functions can be used
#

View file

@ -108,8 +108,10 @@ withColor color content = pure $ Just [i|<span foreground='\##{color}'>#{content
when' :: Monad m => Bool -> m (Maybe a) -> m (Maybe a)
when' cond result = if cond then result else pure Nothing
playerCTLFormat :: String
playerCTLFormat = "@{{status}} {{title}} - {{album}} - {{artist}}"
playerModule :: Module (Maybe Text)
playerModule = \var ->
let update_lines =
mapM_