diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-06-09 17:59:58 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-06-09 17:59:58 +0200 |
commit | cb98a56767d50fe92790ae4f48a3efbb28aab90a (patch) | |
tree | 7f67f16d01ebd365d961da2b83a7272668c46038 /ox-arrays.cabal | |
parent | fcda1579ee4021e71272deb1aebb8c8e404cc4cd (diff) |
Hide .Trace module behind a flag (trace-wrappers)
Pending https://gitlab.haskell.org/ghc/ghc/-/issues/24964
Diffstat (limited to 'ox-arrays.cabal')
-rw-r--r-- | ox-arrays.cabal | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ox-arrays.cabal b/ox-arrays.cabal index 69b7c55..8e4b710 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -7,6 +7,14 @@ build-type: Simple extra-source-files: cbits/arith_lists.h +flag trace-wrappers + description: + Compile modules that define wrappers around the array methods that trace + their arguments and results. This is conditional on a flag because these + modules make documentation generation fail. + default: False + manual: True + library exposed-modules: Data.Array.Mixed.Internal.Arith @@ -19,14 +27,18 @@ library Data.Array.Mixed.Types Data.Array.Mixed.XArray Data.Array.Nested - Data.Array.Nested.Trace - Data.Array.Nested.Trace.TH Data.Array.Nested.Internal.Convert Data.Array.Nested.Internal.Mixed Data.Array.Nested.Internal.Lemmas Data.Array.Nested.Internal.Ranked Data.Array.Nested.Internal.Shape Data.Array.Nested.Internal.Shaped + + if flag(trace-wrappers) + exposed-modules: + Data.Array.Nested.Trace + Data.Array.Nested.Trace.TH + build-depends: base >=4.18 && <4.20, deepseq, |