We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95fd0fb + cbf992a commit b6eca17Copy full SHA for b6eca17
clock-gtk3/Main.hs
@@ -1,6 +1,7 @@
1
{-# OPTIONS_GHC -Wall #-}
2
3
-{-# LANGUAGE LambdaCase, DeriveFunctor, ScopedTypeVariables, TypeApplications #-}
+{-# LANGUAGE LambdaCase, DeriveFunctor, NumericUnderscores,
4
+ ScopedTypeVariables, TypeApplications #-}
5
6
module Main (main) where
7
@@ -242,9 +243,4 @@ watchClock timeVar drawingArea =
242
243
-- | Block for some fixed number of seconds.
244
threadDelaySeconds :: RealFrac n => n -> IO ()
245
threadDelaySeconds =
- Concurrent.threadDelay . round . (* million)
246
-
247
--- | One million = 10^6.
248
-million :: Num n => n
249
-million =
250
- 10 ^ (6 :: Int)
+ Concurrent.threadDelay . round . (* 1_000_000)
0 commit comments