diff options
Diffstat (limited to 'ox-arrays.cabal')
-rw-r--r-- | ox-arrays.cabal | 11 |
1 files changed, 11 insertions, 0 deletions
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, |