Skip to content

Commit

Permalink
Move Time/System.hs to Time/Clock/Type.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Feb 8, 2021
1 parent 62514f2 commit 3b37295
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Streamly/Internal/Data/SVar.hs
Expand Up @@ -135,7 +135,7 @@ import System.IO (hPutStrLn, stderr)

import Streamly.Internal.Control.Concurrent
(MonadAsync, RunInIO(..), doFork, fork, forkManaged)
import Streamly.Internal.Data.Time.System (Clock(..), getTime)
import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
import Streamly.Internal.Data.Time.Units
(AbsTime, NanoSecond64(..), MicroSecond64(..), diffAbsTime64,
fromRelTime64, toRelTime64, showNanoSecond64, showRelTime64)
Expand Down
2 changes: 1 addition & 1 deletion src/Streamly/Internal/Data/Time/Clock.hs
Expand Up @@ -20,7 +20,7 @@ where

import Control.Concurrent (threadDelay, ThreadId)
import Control.Monad (forever)
import Streamly.Internal.Data.Time.System (Clock(..), getTime)
import Streamly.Internal.Data.Time.Clock.Type (Clock(..), getTime)
import Streamly.Internal.Data.Time.Units (MicroSecond64(..), fromAbsTime)
import Streamly.Internal.Control.Concurrent (forkManaged)

Expand Down
File renamed without changes.
Expand Up @@ -5,10 +5,10 @@
#include "config.h"
#endif

#include "Streamly/Internal/Data/Time/config-clock.h"
#include "Streamly/Internal/Data/Time/Clock/config-clock.h"

-- |
-- Module : Streamly.Internal.Data.Time.System
-- Module : Streamly.Internal.Data.Time.Clock.Type
-- Copyright : (c) 2019 Composewell Technologies
-- (c) 2009-2012, Cetin Sert
-- (c) 2010, Eugene Kirpichov
Expand All @@ -19,7 +19,7 @@

-- A majority of the code below has been stolen from the "clock" package.

module Streamly.Internal.Data.Time.System
module Streamly.Internal.Data.Time.Clock.Type
(
-- * get time from the system clock
Clock(..)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Streamly/Internal/Data/Time/TimeSpec.hsc
Expand Up @@ -7,7 +7,7 @@
#include "config.h"
#endif

#include "Streamly/Internal/Data/Time/config-clock.h"
#include "Streamly/Internal/Data/Time/Clock/config-clock.h"

-- |
-- Module : Streamly.Internal.Data.Time.TimeSpec
Expand Down
8 changes: 4 additions & 4 deletions streamly.cabal
Expand Up @@ -154,7 +154,7 @@ extra-source-files:
docs/transformers.md
examples/README.md
src/Streamly/Internal/Data/Stream/Instances.hs
src/Streamly/Internal/Data/Time/config-clock.h
src/Streamly/Internal/Data/Time/Clock/config-clock.h
src/Streamly/Internal/Data/Array/PrimInclude.hs
src/Streamly/Internal/Data/Array/Prim/TypesInclude.hs
src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs
Expand Down Expand Up @@ -356,14 +356,14 @@ library
js-sources: jsbits/clock.js
include-dirs: src
if os(windows)
c-sources: src/Streamly/Internal/Data/Time/Windows.c
c-sources: src/Streamly/Internal/Data/Time/Clock/Windows.c
exposed-modules: Streamly.Internal.FileSystem.Event.Windows
build-depends: Win32 >= 2.6 && < 2.10

if os(darwin)
frameworks: Cocoa
include-dirs: src/Streamly/Internal
c-sources: src/Streamly/Internal/Data/Time/Darwin.c
c-sources: src/Streamly/Internal/Data/Time/Clock/Darwin.c
, src/Streamly/Internal/FileSystem/Event/Darwin.m
exposed-modules:
Streamly.Internal.FileSystem.Event.Darwin
Expand Down Expand Up @@ -418,7 +418,7 @@ library
, Streamly.Internal.Data.Time
, Streamly.Internal.Data.Time.TimeSpec
, Streamly.Internal.Data.Time.Units
, Streamly.Internal.Data.Time.System
, Streamly.Internal.Data.Time.Clock.Type
, Streamly.Internal.Data.Time.Clock

-- streamly-core-stream
Expand Down

0 comments on commit 3b37295

Please sign in to comment.