on master help sign in
Export the Data.Time.Clock.Type module from Clock
8e6d418Ranjeet Kumar Ranjan
core/src/Streamly/Internal/Data/Time/Clock.hs+3−3
@@ -9,8 +9,7 @@
9module Streamly.Internal.Data.Time.Clock
9module Streamly.Internal.Data.Time.Clock
10 (
10 (
11 -- * System clock
11 -- * System clock
12− Clock(..)
12+ module Streamly.Internal.Data.Time.Clock.Type
13− , getTime
14
13
15 -- * Async clock
14 -- * Async clock
16 , asyncClock
15 , asyncClock
@@ -30,13 +29,14 @@ where
30import Control.Concurrent (threadDelay, ThreadId)
29import Control.Concurrent (threadDelay, ThreadId)
31import Control.Concurrent.MVar (MVar, newEmptyMVar, takeMVar, tryPutMVar)
30import Control.Concurrent.MVar (MVar, newEmptyMVar, takeMVar, tryPutMVar)
32import Control.Monad (forever, when, void)
31import Control.Monad (forever, when, void)
33−import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
34import Streamly.Internal.Data.Time.Units
32import Streamly.Internal.Data.Time.Units
35 (MicroSecond64(..), fromAbsTime, addToAbsTime, toRelTime)
33 (MicroSecond64(..), fromAbsTime, addToAbsTime, toRelTime)
36import Streamly.Internal.Control.ForkIO (forkIOManaged)
34import Streamly.Internal.Control.ForkIO (forkIOManaged)
37
35
38import qualified Streamly.Internal.Data.IORef.Unboxed as Unboxed
36import qualified Streamly.Internal.Data.IORef.Unboxed as Unboxed
39
37
38+import Streamly.Internal.Data.Time.Clock.Type
39+
40------------------------------------------------------------------------------
40------------------------------------------------------------------------------
41-- Async clock
41-- Async clock
42------------------------------------------------------------------------------
42------------------------------------------------------------------------------
core/streamly-core.cabal+2−1
@@ -285,7 +285,6 @@ library
285 -- streamly-time
285 -- streamly-time
286 , Streamly.Internal.Data.Time.TimeSpec
286 , Streamly.Internal.Data.Time.TimeSpec
287 , Streamly.Internal.Data.Time.Units
287 , Streamly.Internal.Data.Time.Units
288− , Streamly.Internal.Data.Time.Clock.Type
289 , Streamly.Internal.Data.Time.Clock
288 , Streamly.Internal.Data.Time.Clock
290
289
291 -- streamly-core-stream-types
290 -- streamly-core-stream-types
@@ -433,6 +432,8 @@ library
433 , Streamly.Internal.Data.Producer.Type
432 , Streamly.Internal.Data.Producer.Type
434 , Streamly.Internal.Data.Producer.Source
433 , Streamly.Internal.Data.Producer.Source
435
434
435+ , Streamly.Internal.Data.Time.Clock.Type
436+
436 if flag(dev)
437 if flag(dev)
437 other-modules:
438 other-modules:
438 Streamly.Internal.Data.StreamK.Alt
439 Streamly.Internal.Data.StreamK.Alt