Skip to content

Commit 5326241

Browse files
committed
Make everything threaded
1 parent 64e8dc6 commit 5326241

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lsp-test/lsp-test.cabal

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test-suite tests
7979
main-is: Test.hs
8080
other-modules: DummyServer
8181
hs-source-dirs: test
82-
ghc-options: -W
82+
ghc-options: -W -threaded -rtsopts -with-rtsopts=-N
8383
build-depends: base >= 4.10 && < 5
8484
, hspec
8585
, lens
@@ -101,6 +101,7 @@ test-suite func-test
101101
main-is: FuncTest.hs
102102
hs-source-dirs: func-test
103103
type: exitcode-stdio-1.0
104+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
104105
build-depends: base
105106
, lsp-test
106107
, lsp
@@ -116,6 +117,7 @@ test-suite example
116117
hs-source-dirs: example
117118
type: exitcode-stdio-1.0
118119
default-language: Haskell2010
120+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
119121
build-depends: base
120122
, lsp-test
121123
, parser-combinators
@@ -125,6 +127,7 @@ benchmark simple-bench
125127
main-is: SimpleBench.hs
126128
hs-source-dirs: bench
127129
type: exitcode-stdio-1.0
130+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
128131
build-depends: base
129132
, lsp-test
130133
, lsp

lsp/lsp.cabal

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ executable lsp-demo-reactor-server
7272
hs-source-dirs: example
7373
default-language: Haskell2010
7474
ghc-options: -Wall -Wno-unticked-promoted-constructors
75+
-threaded -rtsopts -with-rtsopts=-N -Wall
7576

7677
build-depends: base
7778
, aeson
@@ -90,6 +91,7 @@ executable lsp-demo-simple-server
9091
hs-source-dirs: example
9192
default-language: Haskell2010
9293
ghc-options: -Wall -Wno-unticked-promoted-constructors
94+
-threaded -rtsopts -with-rtsopts=-N -Wall
9395
build-depends: base
9496
-- the package library. Comment this out if you want repl changes to propagate
9597
, lsp

0 commit comments

Comments
 (0)