mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-11 08:25:40 +03:00
Skip building Array.Prim.* modules for ghc < 8.0
getSizeofMutableByteArray# does not exist for versions of ghc below 8
This commit is contained in:
parent
4d0631a0c6
commit
ef7c6d9633
@ -395,6 +395,8 @@ benchmark Data.Array.Prim
|
||||
other-modules: Streamly.Benchmark.Data.ArrayOps
|
||||
cpp-options: -DDATA_ARRAY_PRIM
|
||||
build-depends: primitive
|
||||
if impl(ghc < 8.0)
|
||||
buildable: False
|
||||
|
||||
benchmark Data.SmallArray
|
||||
import: bench-options
|
||||
@ -411,6 +413,8 @@ benchmark Data.Array.Prim.Pinned
|
||||
main-is: Streamly/Benchmark/Data/Array.hs
|
||||
other-modules: Streamly.Benchmark.Data.ArrayOps
|
||||
cpp-options: -DDATA_ARRAY_PRIM_PINNED
|
||||
if impl(ghc < 8.0)
|
||||
buildable: False
|
||||
|
||||
benchmark Memory.Array
|
||||
import: bench-options
|
||||
|
@ -342,7 +342,6 @@ library
|
||||
other-modules:
|
||||
Streamly.Data.Array
|
||||
, Streamly.Data.SmallArray
|
||||
, Streamly.Data.Prim.Array
|
||||
|
||||
-- Memory storage
|
||||
Streamly.Memory.Malloc
|
||||
@ -381,12 +380,6 @@ library
|
||||
|
||||
-- Arrays
|
||||
, Streamly.Internal.Data.Array
|
||||
, Streamly.Internal.Data.Array.Prim.Types
|
||||
, Streamly.Internal.Data.Array.Prim
|
||||
, Streamly.Internal.Data.Array.Prim.Mut.Types
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned.Types
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned.Mut.Types
|
||||
, Streamly.Internal.Data.SmallArray.Types
|
||||
, Streamly.Internal.Data.SmallArray
|
||||
, Streamly.Internal.Memory.Mutable.Array.Types
|
||||
@ -446,8 +439,24 @@ library
|
||||
, Streamly.Internal.Data.Unicode.Stream
|
||||
, Streamly.Internal.Data.Unicode.Char
|
||||
, Streamly.Internal.Memory.Unicode.Array
|
||||
|
||||
if impl(ghc >= 8.0)
|
||||
other-modules: Streamly.Data.Prim.Array
|
||||
|
||||
if impl(ghc >= 8.0)
|
||||
exposed-modules:
|
||||
-- Arrays
|
||||
Streamly.Internal.Data.Array.Prim.Types
|
||||
, Streamly.Internal.Data.Array.Prim
|
||||
, Streamly.Internal.Data.Array.Prim.Mut.Types
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned.Types
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned
|
||||
, Streamly.Internal.Data.Array.Prim.Pinned.Mut.Types
|
||||
|
||||
-- Text Processing
|
||||
, Streamly.Internal.Unicode.Array.Prim.Pinned
|
||||
|
||||
|
||||
if !impl(ghcjs)
|
||||
exposed-modules:
|
||||
Streamly.Network.Socket
|
||||
@ -675,8 +684,7 @@ test-suite primarray-test
|
||||
, QuickCheck >= 2.10 && < 2.15
|
||||
, hspec >= 2.0 && < 3
|
||||
if impl(ghc < 8.0)
|
||||
build-depends:
|
||||
transformers >= 0.4 && < 0.6
|
||||
buildable: False
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite prim-pinned-array-test
|
||||
@ -692,8 +700,7 @@ test-suite prim-pinned-array-test
|
||||
, QuickCheck >= 2.10 && < 2.15
|
||||
, hspec >= 2.0 && < 3
|
||||
if impl(ghc < 8.0)
|
||||
build-depends:
|
||||
transformers >= 0.4 && < 0.6
|
||||
buildable: False
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite string-test
|
||||
|
Loading…
Reference in New Issue
Block a user