From 15bccc001a5ff2e76d0890f85e300e9312cddd1b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 12 Aug 2011 03:18:46 +0200 Subject: Some strictness optimizations --- lib/Phi/Widgets/Clock.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Phi/Widgets/Clock.hs') diff --git a/lib/Phi/Widgets/Clock.hs b/lib/Phi/Widgets/Clock.hs index 1f00bd0..d2ad134 100644 --- a/lib/Phi/Widgets/Clock.hs +++ b/lib/Phi/Widgets/Clock.hs @@ -34,11 +34,11 @@ data ClockConfig = ClockConfig { clockFormat :: !String defaultClockConfig :: ClockConfig defaultClockConfig = ClockConfig "%R" (0, 0, 0, 1) 0 50 -data Clock = Clock ClockConfig deriving Show +data Clock = Clock !ClockConfig deriving Show -data ClockState = ClockState ZonedTime deriving Show +data ClockState = ClockState !ZonedTime deriving Show -data ClockMessage = UpdateTime ZonedTime deriving (Show, Typeable) +data ClockMessage = UpdateTime !ZonedTime deriving (Show, Typeable) instance WidgetClass Clock where type WidgetData Clock = ClockState -- cgit v1.2.3