diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-07 21:49:32 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-13 21:23:35 +0100 |
| commit | cb178d156dd47e70b52c15a41f476ee2de71befa (patch) | |
| tree | 9f80ebe66d0f5601638a0cc999b5333d38a8fa7c /erebos.cabal | |
| parent | 7bd02e894a231eb1a4a4fbc1a256e16d25f210cc (diff) | |
Internal implementation of Data.ByteArray module
Diffstat (limited to 'erebos.cabal')
| -rw-r--r-- | erebos.cabal | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/erebos.cabal b/erebos.cabal index a17e140..33137ce 100644 --- a/erebos.cabal +++ b/erebos.cabal @@ -55,6 +55,10 @@ flag bytearray-memory description: Use 'memory' package to provide the ByteArray module default: False +flag bytearray-internal + description: Use internal implementation of the ByteArray module + default: False + source-repository head type: git @@ -248,14 +252,21 @@ library build-depends: base < 0 if flag(bytearray-ram) - if flag(bytearray-memory) + if flag(bytearray-memory) || flag(bytearray-internal) build-depends: base < 0 build-depends: ram ^>= { 0.21, 0.22 } elif flag(bytearray-memory) + if flag(bytearray-internal) + build-depends: + base < 0 build-depends: memory ^>= { 0.14, 0.15, 0.16, 0.17, 0.18 }, + elif flag(bytearray-internal) + hs-source-dirs: src/bytearray-internal + other-modules: + Data.ByteArray else build-depends: base < 0 |