Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- textClockNew :: MonadIO m => Maybe TimeLocale -> String -> Double -> m Widget
- textClockNewWith :: MonadIO m => ClockConfig -> m Widget
- defaultClockConfig :: ClockConfig
- data ClockConfig = ClockConfig {}
- data ClockUpdateStrategy
Documentation
textClockNew :: MonadIO m => Maybe TimeLocale -> String -> Double -> m Widget Source #
Create the widget. I recommend passing Nothing
for the TimeLocale
parameter. The format string can include Pango markup
(http://developer.gnome.org/pango/stable/PangoMarkupFormat.html).
textClockNewWith :: MonadIO m => ClockConfig -> m Widget Source #
A configurable text-based clock widget. It currently allows for
a configurable time zone through the ClockConfig
.
See also textClockNew
.
defaultClockConfig :: ClockConfig Source #
A clock configuration that defaults to the current locale
data ClockConfig Source #
Instances
Show ClockConfig Source # | |
Defined in System.Taffybar.Widget.SimpleClock showsPrec :: Int -> ClockConfig -> ShowS # show :: ClockConfig -> String # showList :: [ClockConfig] -> ShowS # | |
Default ClockConfig Source # | |
Defined in System.Taffybar.Widget.SimpleClock def :: ClockConfig # | |
Eq ClockConfig Source # | |
Defined in System.Taffybar.Widget.SimpleClock (==) :: ClockConfig -> ClockConfig -> Bool # (/=) :: ClockConfig -> ClockConfig -> Bool # | |
Ord ClockConfig Source # | |
Defined in System.Taffybar.Widget.SimpleClock compare :: ClockConfig -> ClockConfig -> Ordering # (<) :: ClockConfig -> ClockConfig -> Bool # (<=) :: ClockConfig -> ClockConfig -> Bool # (>) :: ClockConfig -> ClockConfig -> Bool # (>=) :: ClockConfig -> ClockConfig -> Bool # max :: ClockConfig -> ClockConfig -> ClockConfig # min :: ClockConfig -> ClockConfig -> ClockConfig # |
data ClockUpdateStrategy Source #
Instances
Show ClockUpdateStrategy Source # | |
Defined in System.Taffybar.Widget.SimpleClock showsPrec :: Int -> ClockUpdateStrategy -> ShowS # show :: ClockUpdateStrategy -> String # showList :: [ClockUpdateStrategy] -> ShowS # | |
Eq ClockUpdateStrategy Source # | |
Defined in System.Taffybar.Widget.SimpleClock (==) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # (/=) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # | |
Ord ClockUpdateStrategy Source # | |
Defined in System.Taffybar.Widget.SimpleClock compare :: ClockUpdateStrategy -> ClockUpdateStrategy -> Ordering # (<) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # (<=) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # (>) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # (>=) :: ClockUpdateStrategy -> ClockUpdateStrategy -> Bool # max :: ClockUpdateStrategy -> ClockUpdateStrategy -> ClockUpdateStrategy # min :: ClockUpdateStrategy -> ClockUpdateStrategy -> ClockUpdateStrategy # |