on master help sign in
Move Time/System.hs to Time/Clock/Type.hs
3b37295Harendra Kumar
src/Streamly/Internal/Data/SVar.hs+1−1
@@ -135,7 +135,7 @@ import System.IO (hPutStrLn, stderr)
135
135
136import Streamly.Internal.Control.Concurrent
136import Streamly.Internal.Control.Concurrent
137 (MonadAsync, RunInIO(..), doFork, fork, forkManaged)
137 (MonadAsync, RunInIO(..), doFork, fork, forkManaged)
138−import Streamly.Internal.Data.Time.System (Clock(..), getTime)
138+import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
139import Streamly.Internal.Data.Time.Units
139import Streamly.Internal.Data.Time.Units
140 (AbsTime, NanoSecond64(..), MicroSecond64(..), diffAbsTime64,
140 (AbsTime, NanoSecond64(..), MicroSecond64(..), diffAbsTime64,
141 fromRelTime64, toRelTime64, showNanoSecond64, showRelTime64)
141 fromRelTime64, toRelTime64, showNanoSecond64, showRelTime64)
src/Streamly/Internal/Data/Time/Clock.hs+1−1
@@ -20,7 +20,7 @@ where
20
20
21import Control.Concurrent (threadDelay, ThreadId)
21import Control.Concurrent (threadDelay, ThreadId)
22import Control.Monad (forever)
22import Control.Monad (forever)
23−import Streamly.Internal.Data.Time.System (Clock(..), getTime)
23+import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
24import Streamly.Internal.Data.Time.Units (MicroSecond64(..), fromAbsTime)
24import Streamly.Internal.Data.Time.Units (MicroSecond64(..), fromAbsTime)
25import Streamly.Internal.Control.Concurrent (forkManaged)
25import Streamly.Internal.Control.Concurrent (forkManaged)
26
26
src/Streamly/Internal/Data/Time/Darwin.c → src/Streamly/Internal/Data/Time/Clock/Darwin.crenamed

The content is the same.

src/Streamly/Internal/Data/Time/System.hsc → src/Streamly/Internal/Data/Time/Clock/Type.hscrenamed+3−3
@@ -5,10 +5,10 @@
5#include "config.h"
5#include "config.h"
6#endif
6#endif
7
7
8−#include "Streamly/Internal/Data/Time/config-clock.h"
8+#include "Streamly/Internal/Data/Time/Clock/config-clock.h"
9
9
10-- |
10-- |
11−-- Module : Streamly.Internal.Data.Time.System
11+-- Module : Streamly.Internal.Data.Time.Clock.Type
12-- Copyright : (c) 2019 Composewell Technologies
12-- Copyright : (c) 2019 Composewell Technologies
13-- (c) 2009-2012, Cetin Sert
13-- (c) 2009-2012, Cetin Sert
14-- (c) 2010, Eugene Kirpichov
14-- (c) 2010, Eugene Kirpichov
@@ -19,7 +19,7 @@
19
19
20-- A majority of the code below has been stolen from the "clock" package.
20-- A majority of the code below has been stolen from the "clock" package.
21
21
22−module Streamly.Internal.Data.Time.System
22+module Streamly.Internal.Data.Time.Clock.Type
23 (
23 (
24 -- * get time from the system clock
24 -- * get time from the system clock
25 Clock(..)
25 Clock(..)
src/Streamly/Internal/Data/Time/Windows.c → src/Streamly/Internal/Data/Time/Clock/Windows.crenamed

The content is the same.

src/Streamly/Internal/Data/Time/config-clock.h → src/Streamly/Internal/Data/Time/Clock/config-clock.hrenamed

The content is the same.

src/Streamly/Internal/Data/Time/TimeSpec.hsc+1−1
@@ -7,7 +7,7 @@
7#include "config.h"
7#include "config.h"
8#endif
8#endif
9
9
10−#include "Streamly/Internal/Data/Time/config-clock.h"
10+#include "Streamly/Internal/Data/Time/Clock/config-clock.h"
11
11
12-- |
12-- |
13-- Module : Streamly.Internal.Data.Time.TimeSpec
13-- Module : Streamly.Internal.Data.Time.TimeSpec
streamly.cabal+4−4
@@ -154,7 +154,7 @@ extra-source-files:
154 docs/transformers.md
154 docs/transformers.md
155 examples/README.md
155 examples/README.md
156 src/Streamly/Internal/Data/Stream/Instances.hs
156 src/Streamly/Internal/Data/Stream/Instances.hs
157− src/Streamly/Internal/Data/Time/config-clock.h
157+ src/Streamly/Internal/Data/Time/Clock/config-clock.h
158 src/Streamly/Internal/Data/Array/PrimInclude.hs
158 src/Streamly/Internal/Data/Array/PrimInclude.hs
159 src/Streamly/Internal/Data/Array/Prim/TypesInclude.hs
159 src/Streamly/Internal/Data/Array/Prim/TypesInclude.hs
160 src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs
160 src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs
@@ -356,14 +356,14 @@ library
356 js-sources: jsbits/clock.js
356 js-sources: jsbits/clock.js
357 include-dirs: src
357 include-dirs: src
358 if os(windows)
358 if os(windows)
359− c-sources: src/Streamly/Internal/Data/Time/Windows.c
359+ c-sources: src/Streamly/Internal/Data/Time/Clock/Windows.c
360 exposed-modules: Streamly.Internal.FileSystem.Event.Windows
360 exposed-modules: Streamly.Internal.FileSystem.Event.Windows
361 build-depends: Win32 >= 2.6 && < 2.10
361 build-depends: Win32 >= 2.6 && < 2.10
362
362
363 if os(darwin)
363 if os(darwin)
364 frameworks: Cocoa
364 frameworks: Cocoa
365 include-dirs: src/Streamly/Internal
365 include-dirs: src/Streamly/Internal
366− c-sources: src/Streamly/Internal/Data/Time/Darwin.c
366+ c-sources: src/Streamly/Internal/Data/Time/Clock/Darwin.c
367 , src/Streamly/Internal/FileSystem/Event/Darwin.m
367 , src/Streamly/Internal/FileSystem/Event/Darwin.m
368 exposed-modules:
368 exposed-modules:
369 Streamly.Internal.FileSystem.Event.Darwin
369 Streamly.Internal.FileSystem.Event.Darwin
@@ -418,7 +418,7 @@ library
418 , Streamly.Internal.Data.Time
418 , Streamly.Internal.Data.Time
419 , Streamly.Internal.Data.Time.TimeSpec
419 , Streamly.Internal.Data.Time.TimeSpec
420 , Streamly.Internal.Data.Time.Units
420 , Streamly.Internal.Data.Time.Units
421− , Streamly.Internal.Data.Time.System
421+ , Streamly.Internal.Data.Time.Clock.Type
422 , Streamly.Internal.Data.Time.Clock
422 , Streamly.Internal.Data.Time.Clock
423
423
424 -- streamly-core-stream
424 -- streamly-core-stream