on master help sign in
Move the Benchmark.* modules to Internal
2c95037adithyaov
benchmark/FileIO.hs+2−2
@@ -14,8 +14,8 @@ import System.Process.Typed (shell, runProcess_)
14import Data.IORef
14import Data.IORef
15import Gauge
15import Gauge
16
16
17−import qualified Streamly.Benchmark.FileIO.Stream as BFS
17+import qualified Streamly.Internal.Benchmark.FileIO.Stream as BFS
18−import qualified Streamly.Benchmark.FileIO.Array as BFA
18+import qualified Streamly.Internal.Benchmark.FileIO.Array as BFA
19
19
20-- Input and output file handles
20-- Input and output file handles
21data Handles = Handles Handle Handle
21data Handles = Handles Handle Handle
benchmark/Linear.hs+1−1
@@ -16,7 +16,7 @@ import System.Random (randomRIO)
16import Data.Monoid (Last(..))
16import Data.Monoid (Last(..))
17
17
18import qualified GHC.Exts as GHC
18import qualified GHC.Exts as GHC
19−import qualified Streamly.Benchmark.Prelude as Ops
19+import qualified Streamly.Internal.Benchmark.Prelude as Ops
20
20
21import Streamly
21import Streamly
22import qualified Streamly.Data.Fold as FL
22import qualified Streamly.Data.Fold as FL
benchmark/LinearAsync.hs+1−1
@@ -8,7 +8,7 @@
8import Control.DeepSeq (NFData)
8import Control.DeepSeq (NFData)
9-- import Data.Functor.Identity (Identity, runIdentity)
9-- import Data.Functor.Identity (Identity, runIdentity)
10import System.Random (randomRIO)
10import System.Random (randomRIO)
11−import qualified Streamly.Benchmark.Prelude as Ops
11+import qualified Streamly.Internal.Benchmark.Prelude as Ops
12
12
13import Streamly
13import Streamly
14import Gauge
14import Gauge
benchmark/LinearRate.hs+1−1
@@ -10,7 +10,7 @@
10
10
11-- import Data.Functor.Identity (Identity, runIdentity)
11-- import Data.Functor.Identity (Identity, runIdentity)
12import System.Random (randomRIO)
12import System.Random (randomRIO)
13−import qualified Streamly.Benchmark.Prelude as Ops
13+import qualified Streamly.Internal.Benchmark.Prelude as Ops
14
14
15import Streamly
15import Streamly
16import Gauge
16import Gauge
src/Streamly/Benchmark/FileIO/Array.hs → src/Streamly/Internal/Benchmark/FileIO/Array.hsrenamed+2−2
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Benchmark.FileIO.Array
2+-- Module : Streamly.Internal.Benchmark.FileIO.Array
3-- Copyright : (c) 2019 Composewell Technologies
3-- Copyright : (c) 2019 Composewell Technologies
4--
4--
5-- License : BSD3
5-- License : BSD3
@@ -18,7 +18,7 @@
18{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
18{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
19#endif
19#endif
20
20
21−module Streamly.Benchmark.FileIO.Array
21+module Streamly.Internal.Benchmark.FileIO.Array
22 (
22 (
23 last
23 last
24 , countBytes
24 , countBytes
src/Streamly/Benchmark/FileIO/Stream.hs → src/Streamly/Internal/Benchmark/FileIO/Stream.hsrenamed+2−2
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Benchmark.FileIO.Stream
2+-- Module : Streamly.Internal.Benchmark.FileIO.Stream
3-- Copyright : (c) 2019 Composewell Technologies
3-- Copyright : (c) 2019 Composewell Technologies
4--
4--
5-- License : BSD3
5-- License : BSD3
@@ -19,7 +19,7 @@
19{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
19{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
20#endif
20#endif
21
21
22−module Streamly.Benchmark.FileIO.Stream
22+module Streamly.Internal.Benchmark.FileIO.Stream
23 (
23 (
24 -- * FileIO
24 -- * FileIO
25 last
25 last
src/Streamly/Benchmark/Prelude.hs → src/Streamly/Internal/Benchmark/Prelude.hsrenamed+2−2
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Benchmark.Prelude
2+-- Module : Streamly.Internal.Benchmark.Prelude
3-- Copyright : (c) 2018 Harendra Kumar
3-- Copyright : (c) 2018 Harendra Kumar
4--
4--
5-- License : MIT
5-- License : MIT
@@ -20,7 +20,7 @@
20{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
20{-# OPTIONS_GHC -fplugin Test.Inspection.Plugin #-}
21#endif
21#endif
22
22
23−module Streamly.Benchmark.Prelude where
23+module Streamly.Internal.Benchmark.Prelude where
24
24
25import Control.DeepSeq (NFData)
25import Control.DeepSeq (NFData)
26import Control.Monad (when)
26import Control.Monad (when)
streamly.cabal+3−3
@@ -345,9 +345,9 @@ library
345
345
346 if flag(benchmark)
346 if flag(benchmark)
347 exposed-modules:
347 exposed-modules:
348− Streamly.Benchmark.FileIO.Array
348+ Streamly.Internal.Benchmark.FileIO.Array
349− , Streamly.Benchmark.FileIO.Stream
349+ , Streamly.Internal.Benchmark.FileIO.Stream
350− , Streamly.Benchmark.Prelude
350+ , Streamly.Internal.Benchmark.Prelude
351
351
352 build-depends: base >= 4.8 && < 5
352 build-depends: base >= 4.8 && < 5
353 , ghc-prim >= 0.2 && < 0.6
353 , ghc-prim >= 0.2 && < 0.6