on master help sign in
move Atomics to Internal
e2baec7Harendra Kumar
src/Streamly/Atomics.hs → src/Streamly/Internal/Data/Atomics.hsrenamed+2−2
@@ -1,7 +1,7 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2
2
3-- |
3-- |
4−-- Module : Streamly.Atomics
4+-- Module : Streamly.Internal.Data.Atomics
5-- Copyright : (c) 2018-2019 Composewell Technologies
5-- Copyright : (c) 2018-2019 Composewell Technologies
6--
6--
7-- License : BSD3
7-- License : BSD3
@@ -9,7 +9,7 @@
9-- Stability : experimental
9-- Stability : experimental
10-- Portability : GHC
10-- Portability : GHC
11
11
12−module Streamly.Atomics
12+module Streamly.Internal.Data.Atomics
13 (
13 (
14 atomicModifyIORefCAS
14 atomicModifyIORefCAS
15 , atomicModifyIORefCAS_
15 , atomicModifyIORefCAS_
src/Streamly/SVar.hs+1−1
@@ -119,7 +119,7 @@ import Control.Monad (when)
119import Control.Monad.Catch (MonadThrow)
119import Control.Monad.Catch (MonadThrow)
120import Control.Monad.IO.Class (MonadIO(..))
120import Control.Monad.IO.Class (MonadIO(..))
121import Control.Monad.Trans.Control (MonadBaseControl, control, StM)
121import Control.Monad.Trans.Control (MonadBaseControl, control, StM)
122−import Streamly.Atomics
122+import Streamly.Internal.Data.Atomics
123 (atomicModifyIORefCAS, atomicModifyIORefCAS_, writeBarrier,
123 (atomicModifyIORefCAS, atomicModifyIORefCAS_, writeBarrier,
124 storeLoadBarrier)
124 storeLoadBarrier)
125import Data.Concurrent.Queue.MichaelScott (LinkedQueue, pushL)
125import Data.Concurrent.Queue.MichaelScott (LinkedQueue, pushL)
src/Streamly/Streams/Async.hs+1−1
@@ -56,7 +56,7 @@ import Data.Semigroup (Semigroup(..))
56import Prelude hiding (map)
56import Prelude hiding (map)
57import qualified Data.Set as S
57import qualified Data.Set as S
58
58
59−import Streamly.Atomics (atomicModifyIORefCAS)
59+import Streamly.Internal.Data.Atomics (atomicModifyIORefCAS)
60import Streamly.Streams.SVar (fromSVar)
60import Streamly.Streams.SVar (fromSVar)
61import Streamly.Streams.Serial (map)
61import Streamly.Streams.Serial (map)
62import Streamly.SVar
62import Streamly.SVar
streamly.cabal+4−4
@@ -252,8 +252,7 @@ library
252 if os(darwin)
252 if os(darwin)
253 c-sources: src/Streamly/Time/Darwin.c
253 c-sources: src/Streamly/Time/Darwin.c
254 hs-source-dirs: src
254 hs-source-dirs: src
255− other-modules: Streamly.Atomics
255+ other-modules: Streamly.SVar
256− , Streamly.SVar
257 , Streamly.Strict
256 , Streamly.Strict
258 , Streamly.Enumeration
257 , Streamly.Enumeration
259
258
@@ -305,6 +304,7 @@ library
305
304
306 -- Internal modules
305 -- Internal modules
307 , Streamly.Internal
306 , Streamly.Internal
307+ , Streamly.Internal.Data.Atomics
308 , Streamly.Internal.Memory.Array.Types
308 , Streamly.Internal.Memory.Array.Types
309 , Streamly.Internal.Memory.ArrayStream
309 , Streamly.Internal.Memory.ArrayStream
310 , Streamly.Internal.Data.Fold.Types
310 , Streamly.Internal.Data.Fold.Types
@@ -643,7 +643,7 @@ benchmark base
643 c-sources: src/Streamly/Time/Darwin.c
643 c-sources: src/Streamly/Time/Darwin.c
644 hs-source-dirs: benchmark, src
644 hs-source-dirs: benchmark, src
645 main-is: BaseStreams.hs
645 main-is: BaseStreams.hs
646− other-modules: Streamly.Atomics
646+ other-modules: Streamly.Internal.Data.Atomics
647 , Streamly.Time.Units
647 , Streamly.Time.Units
648 , Streamly.Time.Clock
648 , Streamly.Time.Clock
649 , Streamly.SVar
649 , Streamly.SVar
@@ -698,7 +698,7 @@ executable nano-bench
698 if os(darwin)
698 if os(darwin)
699 c-sources: src/Streamly/Time/Darwin.c
699 c-sources: src/Streamly/Time/Darwin.c
700 main-is: NanoBenchmarks.hs
700 main-is: NanoBenchmarks.hs
701− other-modules: Streamly.Atomics
701+ other-modules: Streamly.Internal.Data.Atomics
702 , Streamly.Time.Units
702 , Streamly.Time.Units
703 , Streamly.Time.Clock
703 , Streamly.Time.Clock
704 , Streamly.SVar
704 , Streamly.SVar