diff --git a/package.yaml b/package.yaml index 8fca99f..ea13c1d 100644 --- a/package.yaml +++ b/package.yaml @@ -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: @@ -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