Skip to content

Commit cafb26d

Browse files
committed
Add threads flag
This flag will toggle the use of `ghc-options` in the `typed-process-test` test suite. It is set to `default: True`. This is needed for tests to run on some GHC builds which do not support a threaded runtime. Closes: fpco#59 Signed-off-by: hololeap <[email protected]>
1 parent 52bda62 commit cafb26d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

package.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ dependencies:
2222
- transformers
2323
- unliftio-core
2424

25+
flags:
26+
threads:
27+
description: Use flags that depend on GHC supporting threaded runtime
28+
default: True
29+
manual: True
30+
2531
library:
2632
source-dirs: src
2733
when:
@@ -32,10 +38,12 @@ tests:
3238
typed-process-test:
3339
main: Spec.hs
3440
source-dirs: test
35-
ghc-options:
36-
- -threaded
37-
- -rtsopts
38-
- -with-rtsopts=-N
41+
when:
42+
- condition: flag(threaded)
43+
ghc-options:
44+
- -threaded
45+
- -rtsopts
46+
- -with-rtsopts=-N
3947
dependencies:
4048
- base64-bytestring
4149
- hspec

0 commit comments

Comments
 (0)