on master help sign in
Export the Data.Time.Clock.Type module from Clock
commit8e6d418922b9b3e2f994a27014e6b9511d0bbc1a authorRanjeet Kumar Ranjan <ranjeetr@composewell.com> dateMon 21 Aug 2023, 21:17 (3 years ago) parentfaf50b6
2 files changed+5−4
core/src/Streamly/Internal/Data/Time/Clock.hs+3−3 core/streamly-core.cabal+2−1
core/src/Streamly/Internal/Data/Time/Clock.hs+3−3
@@ -9,8 +9,7 @@
99module Streamly.Internal.Data.Time.Clock
1010 (
1111 -- * System clock
12− Clock(..)
13− , getTime
12+ module Streamly.Internal.Data.Time.Clock.Type
1413
1514 -- * Async clock
1615 , asyncClock
@@ -30,13 +29,14 @@ where
3029import Control.Concurrent (threadDelay, ThreadId)
3130import Control.Concurrent.MVar (MVar, newEmptyMVar, takeMVar, tryPutMVar)
3231import Control.Monad (forever, when, void)
33−import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
3432import Streamly.Internal.Data.Time.Units
3533 (MicroSecond64(..), fromAbsTime, addToAbsTime, toRelTime)
3634import Streamly.Internal.Control.ForkIO (forkIOManaged)
3735
3836import qualified Streamly.Internal.Data.IORef.Unboxed as Unboxed
3937
38+import Streamly.Internal.Data.Time.Clock.Type
39+
4040------------------------------------------------------------------------------
4141-- Async clock
4242------------------------------------------------------------------------------
core/streamly-core.cabal+2−1
@@ -285,7 +285,6 @@ library
285285 -- streamly-time
286286 , Streamly.Internal.Data.Time.TimeSpec
287287 , Streamly.Internal.Data.Time.Units
288− , Streamly.Internal.Data.Time.Clock.Type
289288 , Streamly.Internal.Data.Time.Clock
290289
291290 -- streamly-core-stream-types
@@ -433,6 +432,8 @@ library
433432 , Streamly.Internal.Data.Producer.Type
434433 , Streamly.Internal.Data.Producer.Source
435434
435+ , Streamly.Internal.Data.Time.Clock.Type
436+
436437 if flag(dev)
437438 other-modules:
438439 Streamly.Internal.Data.StreamK.Alt