on master help sign in
Rename maxrate to Prelude.MaxRate.
commit42baf52873df94de761a2f5178f549a6f5fd245e authorpranaysashank <pranaysashank@composewell.com> dateWed 7 Oct 2020, 14:16 (6 years ago) parentaf62054
2 files changed+25−19
streamly.cabal+11−17 test/MaxRate.hs → test/Streamly/Test/Prelude/MaxRate.hs+14−2
streamly.cabal+11−17
@@ -665,6 +665,17 @@ test-suite Prelude.Fold
665665 other-modules: Streamly.Test.Common
666666 , Streamly.Test.Prelude.Common
667667
668+test-suite Prelude.MaxRate
669+ import: prelude-test-options, exe-options, default-extensions
670+ type: exitcode-stdio-1.0
671+ main-is: Streamly/Test/Prelude/MaxRate.hs
672+ ghc-options: -main-is Streamly.Test.Prelude.MaxRate.main
673+ if flag(dev)
674+ buildable: True
675+ build-depends: random >= 1.0.0 && < 2
676+ else
677+ buildable: False
678+
668679test-suite array-test
669680 import: test-options
670681 type: exitcode-stdio-1.0
@@ -805,23 +816,6 @@ test-suite string-test
805816 , hspec >= 2.0 && < 3
806817 default-language: Haskell2010
807818
808−test-suite maxrate
809− import: exe-options
810− type: exitcode-stdio-1.0
811− default-language: Haskell2010
812− main-is: MaxRate.hs
813− js-sources: jsbits/clock.js
814− hs-source-dirs: test
815− if flag(dev)
816− buildable: True
817− build-Depends:
818− streamly
819− , base >= 4.9 && < 5
820− , hspec >= 2.0 && < 3
821− , random >= 1.0.0 && < 2
822− else
823− buildable: False
824−
825819test-suite loops
826820 import: test-options
827821 type: exitcode-stdio-1.0
test/MaxRate.hs → test/Streamly/Test/Prelude/MaxRate.hsrenamed+14−2
@@ -1,7 +1,19 @@
1−{-# LANGUAGE CPP #-}
1+-- |
2+-- Module : Streamly.Test.Prelude.MaxRate
3+-- Copyright : (c) 2018 Composewell Technologies
4+--
5+-- License : BSD-3-Clause
6+-- Maintainer : streamly@composewell.com
7+-- Stability : experimental
8+-- Portability : GHC
9+
10+module Streamly.Test.Prelude.MaxRate where
211
3−import Streamly
412import qualified Streamly.Prelude as S
13+
14+import Streamly.Prelude
15+ ( aheadly, asyncly, wAsyncly, avgRate, maxBuffer, maxThreads, rate,
16+ SerialT, IsStream )
517import Streamly.Internal.Data.Time.Clock (getTime, Clock(..))
618import Streamly.Internal.Data.Time.Units
719 (NanoSecond64, diffAbsTime64, fromRelTime64)