We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2634926 commit 763fb2cCopy full SHA for 763fb2c
random-build.cabal
@@ -42,6 +42,16 @@ flag pedantic
42
default: False
43
manual: True
44
45
+flag threads
46
+ description: Enable threading and rtsopts
47
+ default: True
48
+ manual: True
49
+
50
+flag profile
51
+ description: Enable profiling flags
52
+ default: False
53
54
55
common warnings
56
ghc-options: -Wall
57
@@ -118,4 +128,7 @@ executable random-build
118
128
119
129
hs-source-dirs: app
120
130
default-language: Haskell2010
121
- ghc-options: -threaded
131
+ if flag(threads)
132
+ ghc-options: -threaded -rtsopts -with-rtsopts=N
133
+ if flag(profile)
134
+ ghc-options: -prof-cafs -prof-auto -rtsopts
0 commit comments