on master help sign in
Move Time/System.hs to Time/Clock/Type.hs
commit3b37295b292203fbb67446e434e81bdd2d58b100 authorHarendra Kumar <harendra@composewell.com> dateSun 7 Feb 2021, 14:29 (6 years ago) parent62514f2
8 files changed+10−10
src/Streamly/Internal/Data/SVar.hs+1−1 src/Streamly/Internal/Data/Time/Clock.hs+1−1 src/Streamly/Internal/Data/Time/Darwin.c → src/Streamly/Internal/Data/Time/Clock/Darwin.c src/Streamly/Internal/Data/Time/System.hsc → src/Streamly/Internal/Data/Time/Clock/Type.hsc+3−3 src/Streamly/Internal/Data/Time/Windows.c → src/Streamly/Internal/Data/Time/Clock/Windows.c src/Streamly/Internal/Data/Time/config-clock.h → src/Streamly/Internal/Data/Time/Clock/config-clock.h src/Streamly/Internal/Data/Time/TimeSpec.hsc+1−1 streamly.cabal+4−4
src/Streamly/Internal/Data/SVar.hs+1−1
@@ -135,7 +135,7 @@ import System.IO (hPutStrLn, stderr)
135135
136136import Streamly.Internal.Control.Concurrent
137137 (MonadAsync, RunInIO(..), doFork, fork, forkManaged)
138−import Streamly.Internal.Data.Time.System (Clock(..), getTime)
138+import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
139139import Streamly.Internal.Data.Time.Units
140140 (AbsTime, NanoSecond64(..), MicroSecond64(..), diffAbsTime64,
141141 fromRelTime64, toRelTime64, showNanoSecond64, showRelTime64)
src/Streamly/Internal/Data/Time/Clock.hs+1−1
@@ -20,7 +20,7 @@ where
2020
2121import Control.Concurrent (threadDelay, ThreadId)
2222import Control.Monad (forever)
23−import Streamly.Internal.Data.Time.System (Clock(..), getTime)
23+import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
2424import Streamly.Internal.Data.Time.Units (MicroSecond64(..), fromAbsTime)
2525import Streamly.Internal.Control.Concurrent (forkManaged)
2626
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 @@
55#include "config.h"
66#endif
77
8−#include "Streamly/Internal/Data/Time/config-clock.h"
8+#include "Streamly/Internal/Data/Time/Clock/config-clock.h"
99
1010-- |
11−-- Module : Streamly.Internal.Data.Time.System
11+-- Module : Streamly.Internal.Data.Time.Clock.Type
1212-- Copyright : (c) 2019 Composewell Technologies
1313-- (c) 2009-2012, Cetin Sert
1414-- (c) 2010, Eugene Kirpichov
@@ -19,7 +19,7 @@
1919
2020-- A majority of the code below has been stolen from the "clock" package.
2121
22−module Streamly.Internal.Data.Time.System
22+module Streamly.Internal.Data.Time.Clock.Type
2323 (
2424 -- * get time from the system clock
2525 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 @@
77#include "config.h"
88#endif
99
10−#include "Streamly/Internal/Data/Time/config-clock.h"
10+#include "Streamly/Internal/Data/Time/Clock/config-clock.h"
1111
1212-- |
1313-- Module : Streamly.Internal.Data.Time.TimeSpec
streamly.cabal+4−4
@@ -154,7 +154,7 @@ extra-source-files:
154154 docs/transformers.md
155155 examples/README.md
156156 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
158158 src/Streamly/Internal/Data/Array/PrimInclude.hs
159159 src/Streamly/Internal/Data/Array/Prim/TypesInclude.hs
160160 src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs
@@ -356,14 +356,14 @@ library
356356 js-sources: jsbits/clock.js
357357 include-dirs: src
358358 if os(windows)
359− c-sources: src/Streamly/Internal/Data/Time/Windows.c
359+ c-sources: src/Streamly/Internal/Data/Time/Clock/Windows.c
360360 exposed-modules: Streamly.Internal.FileSystem.Event.Windows
361361 build-depends: Win32 >= 2.6 && < 2.10
362362
363363 if os(darwin)
364364 frameworks: Cocoa
365365 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
367367 , src/Streamly/Internal/FileSystem/Event/Darwin.m
368368 exposed-modules:
369369 Streamly.Internal.FileSystem.Event.Darwin
@@ -418,7 +418,7 @@ library
418418 , Streamly.Internal.Data.Time
419419 , Streamly.Internal.Data.Time.TimeSpec
420420 , Streamly.Internal.Data.Time.Units
421− , Streamly.Internal.Data.Time.System
421+ , Streamly.Internal.Data.Time.Clock.Type
422422 , Streamly.Internal.Data.Time.Clock
423423
424424 -- streamly-core-stream