aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ox-arrays.cabal16
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,