From cb98a56767d50fe92790ae4f48a3efbb28aab90a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 9 Jun 2024 17:59:58 +0200 Subject: Hide .Trace module behind a flag (trace-wrappers) Pending https://gitlab.haskell.org/ghc/ghc/-/issues/24964 --- ox-arrays.cabal | 16 ++++++++++++++-- 1 file 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, -- cgit v1.2.3-70-g09d2