aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-11-21 13:06:20 -0700
committerJosh Rahm <rahm@google.com>2022-11-21 13:06:20 -0700
commit224998e9185ebb8fd6d1741c6536e22666a7680d (patch)
treeed3e0cadd83e50b66a1aeaf4ab36bb48625dfa4a
parentee9be16599f20aef6d1d3fd15666c00452f85aba (diff)
downloadrde-224998e9185ebb8fd6d1741c6536e22666a7680d.tar.gz
rde-224998e9185ebb8fd6d1741c6536e22666a7680d.tar.bz2
rde-224998e9185ebb8fd6d1741c6536e22666a7680d.zip
Enable LambdaCase
-rw-r--r--package.yaml1
-rw-r--r--src/Rahm/Desktop/XMobarLog.hs2
2 files changed, 2 insertions, 1 deletions
diff --git a/package.yaml b/package.yaml
index cd62c0e..11eabfa 100644
--- a/package.yaml
+++ b/package.yaml
@@ -21,6 +21,7 @@ ghc-options:
- -XTupleSections
- -XTypeFamilies
- -XViewPatterns
+ - -XLambdaCase
dependencies:
- base >= 4.0.0
diff --git a/src/Rahm/Desktop/XMobarLog.hs b/src/Rahm/Desktop/XMobarLog.hs
index 5969044..d1d131c 100644
--- a/src/Rahm/Desktop/XMobarLog.hs
+++ b/src/Rahm/Desktop/XMobarLog.hs
@@ -53,7 +53,7 @@ xMobarLogHook (XMobarLog xmproc) = do
tell " "
tell $ logLevelToXMobar loglevel
- forM_ theaters $ \theater -> case theater of
+ forM_ theaters $ \case
(Just n, _, True) -> do
tell "<fn=1><fc=#ffffff>"
tell n