on master help sign in
Move "Clock.hsc" to "System.hsc"

The Clock module will host higher level functionality built on lower level system clock.

commit2a522a176e25e4847c6a89d2d2e159e793a25e30 authorHarendra Kumar <harendra@composewell.com> dateFri 5 Feb 2021, 01:40 (6 years ago) parentc3298c1
3 files changed+20−2
src/Streamly/Internal/Data/Time/Clock.hs+17 src/Streamly/Internal/Data/Time/Clock.hsc → src/Streamly/Internal/Data/Time/System.hsc+2−2 streamly.cabal+1
src/Streamly/Internal/Data/Time/Clock.hsnew file+17
@@ -0,0 +1,17 @@
1+-- |
2+-- Module : Streamly.Internal.Data.Time.Clock
3+-- Copyright : (c) 2021 Composewell Technologies
4+-- License : BSD-3-Clause
5+-- Maintainer : streamly@composewell.com
6+-- Stability : experimental
7+-- Portability : GHC
8+
9+module Streamly.Internal.Data.Time.Clock
10+ (
11+ -- * System clock
12+ Clock(..)
13+ , getTime
14+ )
15+where
16+
17+import Streamly.Internal.Data.Time.System
src/Streamly/Internal/Data/Time/Clock.hsc → src/Streamly/Internal/Data/Time/System.hscrenamed+2−2
@@ -8,7 +8,7 @@
88#include "Streamly/Internal/Data/Time/config-clock.h"
99
1010-- |
11−-- Module : Streamly.Internal.Data.Time.Clock
11+-- Module : Streamly.Internal.Data.Time.System
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.Clock
22+module Streamly.Internal.Data.Time.System
2323 (
2424 -- * get time from the system clock
2525 Clock(..)
streamly.cabal+1
@@ -417,6 +417,7 @@ library
417417 , Streamly.Internal.Data.Time
418418 , Streamly.Internal.Data.Time.TimeSpec
419419 , Streamly.Internal.Data.Time.Units
420+ , Streamly.Internal.Data.Time.System
420421 , Streamly.Internal.Data.Time.Clock
421422
422423 -- streamly-core-stream