on master help sign in
move Atomics to Internal
commite2baec7b1db234ed811589aa51499e096c23cfe3 authorHarendra Kumar <harendra.kumar@gmail.com> dateWed 25 Sep 2019, 01:19 (7 years ago) parent98393fc
4 files changed+8−8
src/Streamly/Atomics.hs → src/Streamly/Internal/Data/Atomics.hs+2−2 src/Streamly/SVar.hs+1−1 src/Streamly/Streams/Async.hs+1−1 streamly.cabal+4−4
src/Streamly/Atomics.hs → src/Streamly/Internal/Data/Atomics.hsrenamed+2−2
@@ -1,7 +1,7 @@
11{-# LANGUAGE CPP #-}
22
33-- |
4−-- Module : Streamly.Atomics
4+-- Module : Streamly.Internal.Data.Atomics
55-- Copyright : (c) 2018-2019 Composewell Technologies
66--
77-- License : BSD3
@@ -9,7 +9,7 @@
99-- Stability : experimental
1010-- Portability : GHC
1111
12−module Streamly.Atomics
12+module Streamly.Internal.Data.Atomics
1313 (
1414 atomicModifyIORefCAS
1515 , atomicModifyIORefCAS_
src/Streamly/SVar.hs+1−1
@@ -119,7 +119,7 @@ import Control.Monad (when)
119119import Control.Monad.Catch (MonadThrow)
120120import Control.Monad.IO.Class (MonadIO(..))
121121import Control.Monad.Trans.Control (MonadBaseControl, control, StM)
122−import Streamly.Atomics
122+import Streamly.Internal.Data.Atomics
123123 (atomicModifyIORefCAS, atomicModifyIORefCAS_, writeBarrier,
124124 storeLoadBarrier)
125125import Data.Concurrent.Queue.MichaelScott (LinkedQueue, pushL)
src/Streamly/Streams/Async.hs+1−1
@@ -56,7 +56,7 @@ import Data.Semigroup (Semigroup(..))
5656import Prelude hiding (map)
5757import qualified Data.Set as S
5858
59−import Streamly.Atomics (atomicModifyIORefCAS)
59+import Streamly.Internal.Data.Atomics (atomicModifyIORefCAS)
6060import Streamly.Streams.SVar (fromSVar)
6161import Streamly.Streams.Serial (map)
6262import Streamly.SVar
streamly.cabal+4−4
@@ -252,8 +252,7 @@ library
252252 if os(darwin)
253253 c-sources: src/Streamly/Time/Darwin.c
254254 hs-source-dirs: src
255− other-modules: Streamly.Atomics
256− , Streamly.SVar
255+ other-modules: Streamly.SVar
257256 , Streamly.Strict
258257 , Streamly.Enumeration
259258
@@ -305,6 +304,7 @@ library
305304
306305 -- Internal modules
307306 , Streamly.Internal
307+ , Streamly.Internal.Data.Atomics
308308 , Streamly.Internal.Memory.Array.Types
309309 , Streamly.Internal.Memory.ArrayStream
310310 , Streamly.Internal.Data.Fold.Types
@@ -643,7 +643,7 @@ benchmark base
643643 c-sources: src/Streamly/Time/Darwin.c
644644 hs-source-dirs: benchmark, src
645645 main-is: BaseStreams.hs
646− other-modules: Streamly.Atomics
646+ other-modules: Streamly.Internal.Data.Atomics
647647 , Streamly.Time.Units
648648 , Streamly.Time.Clock
649649 , Streamly.SVar
@@ -698,7 +698,7 @@ executable nano-bench
698698 if os(darwin)
699699 c-sources: src/Streamly/Time/Darwin.c
700700 main-is: NanoBenchmarks.hs
701− other-modules: Streamly.Atomics
701+ other-modules: Streamly.Internal.Data.Atomics
702702 , Streamly.Time.Units
703703 , Streamly.Time.Clock
704704 , Streamly.SVar