Skip to content

Commit b6eca17

Browse files
committed
Merge branch 'master' of github.com:typeclasses/typeclasses-projects
2 parents 95fd0fb + cbf992a commit b6eca17

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

clock-gtk3/Main.hs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{-# OPTIONS_GHC -Wall #-}
22

3-
{-# LANGUAGE LambdaCase, DeriveFunctor, ScopedTypeVariables, TypeApplications #-}
3+
{-# LANGUAGE LambdaCase, DeriveFunctor, NumericUnderscores,
4+
ScopedTypeVariables, TypeApplications #-}
45

56
module Main (main) where
67

@@ -242,9 +243,4 @@ watchClock timeVar drawingArea =
242243
-- | Block for some fixed number of seconds.
243244
threadDelaySeconds :: RealFrac n => n -> IO ()
244245
threadDelaySeconds =
245-
Concurrent.threadDelay . round . (* million)
246-
247-
-- | One million = 10^6.
248-
million :: Num n => n
249-
million =
250-
10 ^ (6 :: Int)
246+
Concurrent.threadDelay . round . (* 1_000_000)

0 commit comments

Comments
 (0)