Skip to content

Commit 1552523

Browse files
committed
Make everything threaded
1 parent d80d9dd commit 1552523

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lsp-test/lsp-test.cabal

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test-suite tests
8080
main-is: Test.hs
8181
other-modules: DummyServer
8282
hs-source-dirs: test
83-
ghc-options: -W
83+
ghc-options: -W -threaded -rtsopts -with-rtsopts=-N
8484
build-depends: base >= 4.10 && < 5
8585
, hspec
8686
, lens
@@ -102,6 +102,7 @@ test-suite func-test
102102
main-is: FuncTest.hs
103103
hs-source-dirs: func-test
104104
type: exitcode-stdio-1.0
105+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
105106
build-depends: base
106107
, lsp-test
107108
, lsp
@@ -117,6 +118,7 @@ test-suite example
117118
hs-source-dirs: example
118119
type: exitcode-stdio-1.0
119120
default-language: Haskell2010
121+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
120122
build-depends: base
121123
, lsp-test
122124
, parser-combinators
@@ -126,6 +128,7 @@ benchmark simple-bench
126128
main-is: SimpleBench.hs
127129
hs-source-dirs: bench
128130
type: exitcode-stdio-1.0
131+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
129132
build-depends: base
130133
, lsp-test
131134
, lsp

lsp/lsp.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ executable lsp-demo-reactor-server
6969
hs-source-dirs: example
7070
default-language: Haskell2010
7171
ghc-options: -Wall -Wno-unticked-promoted-constructors
72+
-threaded -rtsopts -with-rtsopts=-N -Wall
7273

7374
build-depends: base
7475
, aeson
@@ -87,6 +88,7 @@ executable lsp-demo-simple-server
8788
hs-source-dirs: example
8889
default-language: Haskell2010
8990
ghc-options: -Wall -Wno-unticked-promoted-constructors
91+
-threaded -rtsopts -with-rtsopts=-N -Wall
9092
build-depends: base
9193
-- the package library. Comment this out if you want repl changes to propagate
9294
, lsp

0 commit comments

Comments
 (0)