@@ -269,9 +269,6 @@ library
269 c-sources: src/Streamly/Internal/Data/Time/Darwin.c
269 c-sources: src/Streamly/Internal/Data/Time/Darwin.c
270 hs-source-dirs: src
270 hs-source-dirs: src
271 other-modules:
271 other-modules:
272− Streamly.Internal.Data.Stream.StreamDK.Type
273− , Streamly.Internal.Data.Stream.StreamDK
275 -- Memory storage
272 -- Memory storage
276 Streamly.Memory.Malloc
273 Streamly.Memory.Malloc
277 , Streamly.Memory.Ring
274 , Streamly.Memory.Ring
@@ -302,7 +299,6 @@ library
302 , Streamly.Internal.Data.Time
299 , Streamly.Internal.Data.Time
303 , Streamly.Internal.Data.Time.Units
300 , Streamly.Internal.Data.Time.Units
304 , Streamly.Internal.Data.Time.Clock
301 , Streamly.Internal.Data.Time.Clock
305− , Streamly.Internal.Data.Stream.StreamD.Type
306 , Streamly.Internal.Data.SVar
302 , Streamly.Internal.Data.SVar
307 , Streamly.Internal.Data.Array
303 , Streamly.Internal.Data.Array
308 , Streamly.Internal.Data.SmallArray
304 , Streamly.Internal.Data.SmallArray
@@ -317,7 +313,10 @@ library
317 -- Base streams
313 -- Base streams
318 , Streamly.Internal.Data.Stream.StreamK.Type
314 , Streamly.Internal.Data.Stream.StreamK.Type
319 , Streamly.Internal.Data.Stream.StreamK
315 , Streamly.Internal.Data.Stream.StreamK
316+ , Streamly.Internal.Data.Stream.StreamD.Type
320 , Streamly.Internal.Data.Stream.StreamD
317 , Streamly.Internal.Data.Stream.StreamD
318+ , Streamly.Internal.Data.Stream.StreamDK.Type
319+ , Streamly.Internal.Data.Stream.StreamDK
321 , Streamly.Internal.Data.Stream.Enumeration
320 , Streamly.Internal.Data.Stream.Enumeration
322 , Streamly.Internal.Data.Stream.Prelude
321 , Streamly.Internal.Data.Stream.Prelude
@@ -733,112 +732,46 @@ benchmark concurrent
733 buildable: False
732 buildable: False
735-------------------------------------------------------------------------------
734-------------------------------------------------------------------------------
736−-- Internal benchmarks for unexposed modules
735+-- Internal benchmarks
737-------------------------------------------------------------------------------
736-------------------------------------------------------------------------------
739−-- We have to copy the streamly library modules here because there is no
740−-- way to use unexposed modules from the library.
742benchmark base
738benchmark base
743 import: bench-options
739 import: bench-options
744 type: exitcode-stdio-1.0
740 type: exitcode-stdio-1.0
745− include-dirs: src/Streamly/Internal/Data/Time
748− c-sources: src/Streamly/Internal/Data/Time/Windows.c
750− c-sources: src/Streamly/Internal/Data/Time/Darwin.c
751− hs-source-dirs: benchmark, src
741+ hs-source-dirs: benchmark
752 main-is: BaseStreams.hs
742 main-is: BaseStreams.hs
753− other-modules: Streamly.Internal.Data.Atomics
754− , Streamly.Internal.Data.Stream.StreamD.Type
755− , Streamly.Internal.Data.SVar
756− , Streamly.Internal.Data.Time.Units
757− , Streamly.Internal.Data.Time.Clock
758− , Streamly.Internal.Data.Stream.StreamDK.Type
759− , Streamly.Internal.Data.Stream.StreamDK
760− , Streamly.Internal.Data.Stream.StreamK.Type
761− , Streamly.Internal.Data.Stream.StreamK
762− , Streamly.Internal.Data.Stream.StreamD
763− , Streamly.Internal.Data.Stream.Prelude
764− , Streamly.FileSystem.IOVec
766− , StreamDOps
743+ other-modules: StreamDOps
767 , StreamKOps
744 , StreamKOps
768 , StreamDKOps
745 , StreamDKOps
770 if flag(dev)
747 if flag(dev)
771 buildable: True
748 buildable: True
772 build-depends:
749 build-depends:
773− base >= 4.8 && < 5
751+ , base >= 4.8 && < 5
774 , deepseq >= 1.4.1 && < 1.5
752 , deepseq >= 1.4.1 && < 1.5
775 , random >= 1.0 && < 2.0
753 , random >= 1.0 && < 2.0
776 , gauge >= 0.2.4 && < 0.3
754 , gauge >= 0.2.4 && < 0.3
778− , ghc-prim >= 0.2 && < 0.6
779− , containers >= 0.5.8.2 && < 0.7
780− , heaps >= 0.3 && < 0.4
783− , atomic-primops >= 0.8 && < 0.9
784− , lockfree-queue >= 0.2.3 && < 0.3
786− , exceptions >= 0.8 && < 0.11
787− , monad-control >= 1.0 && < 2
789− , transformers >= 0.4 && < 0.6
790− , transformers-base >= 0.4 && < 0.5
794− semigroups >= 0.18 && < 0.19
796 buildable: False
756 buildable: False
798executable nano-bench
758executable nano-bench
799 import: bench-options
759 import: bench-options
800− hs-source-dirs: benchmark, src
760+ hs-source-dirs: benchmark
801− include-dirs: src/Streamly/Internal/Data/Time
804− c-sources: src/Streamly/Internal/Data/Time/Windows.c
806− c-sources: src/Streamly/Internal/Data/Time/Darwin.c
807 main-is: NanoBenchmarks.hs
761 main-is: NanoBenchmarks.hs
808− other-modules: Streamly.Internal.Data.Atomics
809− , Streamly.Internal.Data.Stream.StreamD.Type
810− , Streamly.Internal.Data.SVar
811− , Streamly.Internal.Data.Time.Units
812− , Streamly.Internal.Data.Time.Clock
813− , Streamly.Internal.Data.Stream.StreamK.Type
814− , Streamly.Internal.Data.Stream.StreamK
815− , Streamly.FileSystem.IOVec
816− , Streamly.Internal.Data.Stream.StreamD
817 if flag(dev)
762 if flag(dev)
818 buildable: True
763 buildable: True
819 build-depends:
764 build-depends:
820− base >= 4.8 && < 5
766+ , base >= 4.8 && < 5
821− , gauge >= 0.2.4 && < 0.3
767+ , gauge >= 0.2.4 && < 0.3
822− , ghc-prim >= 0.2 && < 0.6
823− , containers >= 0.5.8.2 && < 0.7
824− , deepseq >= 1.4.1 && < 1.5
825− , heaps >= 0.3 && < 0.4
826− , random >= 1.0 && < 2.0
768+ , random >= 1.0 && < 2.0
829− , atomic-primops >= 0.8 && < 0.9
830− , lockfree-queue >= 0.2.3 && < 0.3
832− , exceptions >= 0.8 && < 0.11
833− , monad-control >= 1.0 && < 2
835− , transformers >= 0.4 && < 0.6
836− , transformers-base >= 0.4 && < 0.5
838 buildable: False
770 buildable: False
840−executable adaptive
772+benchmark adaptive
841 import: bench-options
773 import: bench-options
774+ type: exitcode-stdio-1.0
842 hs-source-dirs: benchmark
775 hs-source-dirs: benchmark
843 main-is: Adaptive.hs
776 main-is: Adaptive.hs
844 default-language: Haskell2010
777 default-language: Haskell2010
@@ -846,9 +779,9 @@ executable adaptive
846 buildable: True
779 buildable: True
847 build-depends:
780 build-depends:
849− , base >= 4.8 && < 5
782+ , base >= 4.8 && < 5
850− , gauge >= 0.2.4 && < 0.3
783+ , gauge >= 0.2.4 && < 0.3
851− , random >= 1.0 && < 2.0
784+ , random >= 1.0 && < 2.0
853 buildable: False
786 buildable: False