diff options
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Common')
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Common/Parsers.hs | 2 | ||||
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Common/Types.hs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Common/Parsers.hs b/src/Xmobar/Plugins/Monitors/Common/Parsers.hs index 99b4aaf..188b87d 100644 --- a/src/Xmobar/Plugins/Monitors/Common/Parsers.hs +++ b/src/Xmobar/Plugins/Monitors/Common/Parsers.hs @@ -54,7 +54,7 @@ runExportParser (x:xs) = do pureParseTemplate :: PureConfig -> TemplateInput -> IO String pureParseTemplate PureConfig{..} TemplateInput{..} = do let m = let expSnds :: [([(String, String, String)], String)] = zip (map snd temAllTemplate) temMonitorValues - in Map.fromList $ zip (map fst temAllTemplate) $ expSnds + in Map.fromList $ zip (map fst temAllTemplate) expSnds s <- minCombine m temInputTemplate let (n, s') = if pMaxTotalWidth > 0 && length s > pMaxTotalWidth then trimTo (pMaxTotalWidth - length pMaxTotalWidthEllipsis) "" s diff --git a/src/Xmobar/Plugins/Monitors/Common/Types.hs b/src/Xmobar/Plugins/Monitors/Common/Types.hs index f1d85c9..a2d5eb4 100644 --- a/src/Xmobar/Plugins/Monitors/Common/Types.hs +++ b/src/Xmobar/Plugins/Monitors/Common/Types.hs @@ -73,11 +73,11 @@ data MConfig = data PureConfig = PureConfig - { pNormalColor :: (Maybe String) + { pNormalColor :: Maybe String , pLow :: Int - , pLowColor :: (Maybe String) + , pLowColor :: Maybe String , pHigh :: Int - , pHighColor :: (Maybe String) + , pHighColor :: Maybe String , pTemplate :: String , pExport :: [String] , pPpad :: Int |