summaryrefslogtreecommitdiff
path: root/p/haskell-aeson/debian/patches/threaded-option.diff
blob: b3a0df4300036dde9b8caff6f3e0bd44708a301b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/aeson.cabal
+++ b/aeson.cabal
@@ -82,6 +82,10 @@ flag th
   description: build TH bits
   default: True
 
+flag threaded
+  description: build threaded
+  default: True
+
 library
   default-language: Haskell2010
   hs-source-dirs: .
@@ -174,6 +178,10 @@ library
     hs-source-dirs: ffi
     other-modules: Data.Aeson.Parser.UnescapeFFI
 
+  if flag(threaded)
+    ghc-options: -threaded
+
+
 test-suite tests
   default-language: Haskell2010
   type: exitcode-stdio-1.0