From 09041ca155485885a2f337f71b04442e991a550d Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 16 May 2025 10:42:24 +0200 Subject: default-show-instances flag --- ox-arrays.cabal | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ox-arrays.cabal') diff --git a/ox-arrays.cabal b/ox-arrays.cabal index 3ab0e71..29d04a4 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -42,6 +42,14 @@ flag pedantic-c-warnings default: False manual: True +flag default-show-instances + description: + Use default GHC-derived Show instances for arrays, shapes and indices. This + exposes the internal struct-of-arrays representation and is less readable, + but can be useful for ox-arrays debugging. + default: False + manual: True + library exposed-modules: -- put this module on top so ghci considers it the "main" module @@ -69,6 +77,9 @@ library Data.Array.Nested.Trace Data.Array.Nested.Trace.TH + if flag(default-show-instances) + cpp-options: -DOXAR_DEFAULT_SHOW_INSTANCES + build-depends: strided-array-ops, -- cgit v1.2.3-70-g09d2