Skip to content

Commit 0ac5b57

Browse files
committed
fix: Use -threaded for webservice so it crashes less.
1 parent 2529204 commit 0ac5b57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

github-tools.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ executable hub-settings
251251

252252
executable webservice
253253
main-is: webservice.hs
254-
ghc-options: -Wall
254+
ghc-options: -Wall -threaded
255255
hs-source-dirs: web
256256
default-language: Haskell2010
257257
other-modules:

web/webservice.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ runTestServer port = do
3232
-- Put this all to work!
3333
main :: IO ()
3434
main = do
35-
-- So real time logging works correctly.
35+
-- So real time logging works correctly.
3636
hSetBuffering stdout LineBuffering
3737
args <- getArgs
3838
case args of
3939
[port] -> runTestServer $ read port
40-
_ -> runTestServer =<< read <$> getEnv "PORT"
40+
_ -> runTestServer . read =<< getEnv "PORT"

0 commit comments

Comments
 (0)