From 9af7e4149a9b986ce127f809ef830a7c8e0318ec Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Thu, 20 May 2021 23:11:10 -0400 Subject: Add show instances for several types so that configs can be generated programmatically --- src/Xmobar/Config/Types.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Xmobar/Config/Types.hs') diff --git a/src/Xmobar/Config/Types.hs b/src/Xmobar/Config/Types.hs index d59c993..8d78f33 100644 --- a/src/Xmobar/Config/Types.hs +++ b/src/Xmobar/Config/Types.hs @@ -65,7 +65,7 @@ data Config = -- right text alignment , template :: String -- ^ The output template , verbose :: Bool -- ^ Emit additional debug messages - } deriving (Read) + } deriving (Read, Show) data XPosition = Top | TopW Align Int @@ -77,9 +77,9 @@ data XPosition = Top | BottomSize Align Int Int | Static {xpos, ypos, width, height :: Int} | OnScreen Int XPosition - deriving ( Read, Eq ) + deriving ( Read, Show, Eq ) -data Align = L | R | C deriving ( Read, Eq ) +data Align = L | R | C deriving ( Read, Show, Eq ) data Border = NoBorder | TopB @@ -88,4 +88,4 @@ data Border = NoBorder | TopBM Int | BottomBM Int | FullBM Int - deriving ( Read, Eq ) + deriving ( Read, Show, Eq ) -- cgit v1.2.3