Skip to content

Commit

Permalink
Add threads flag
Browse files Browse the repository at this point in the history
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: #59
Signed-off-by: hololeap <[email protected]>
  • Loading branch information
hololeap committed Oct 28, 2022
1 parent 52bda62 commit 23af55c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ dependencies:
- transformers
- unliftio-core

flags:
threads:
description: Use flags that depend on GHC supporting a threaded runtime (tests only)
default: True
manual: True

library:
source-dirs: src
when:
Expand All @@ -32,10 +38,12 @@ tests:
typed-process-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
when:
- condition: flag(threads)
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- base64-bytestring
- hspec
Expand Down

0 comments on commit 23af55c

Please sign in to comment.