Skip to content

Commit a5ea8b0

Browse files
committed
Enable CPP per module in tests
This is workaround for problem of benchmarking build time. When package is compiled with GHC flags `-ddump-timings -ddump-to-file` *.dump-timings files corresponding to modules with enabled CPP gets overwritten at link time. Timing for Utilities still get lost but its contribution is small anyway and we're able to keep timings for other modules Note that libraries are not affected by this problem.
1 parent e6660a7 commit a5ea8b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

vector/tests/Utilities.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DefaultSignatures #-}
23
{-# LANGUAGE FlexibleInstances #-}
34
{-# LANGUAGE GADTs #-}

vector/vector.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ common tests-common
208208
Tests.Vector.UnitTests
209209
Utilities
210210

211-
default-extensions: CPP,
211+
default-extensions:
212212
ScopedTypeVariables,
213213
PatternGuards,
214214
MultiParamTypeClasses,

0 commit comments

Comments
 (0)