mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-08 17:17:28 +01:00
Fix DevelMain
This commit is contained in:
parent
d815d5cfa7
commit
b3dcf31228
@ -23,7 +23,7 @@ main :: IO (Store (IORef Application))
|
|||||||
main =
|
main =
|
||||||
do s <- static "static"
|
do s <- static "static"
|
||||||
c <- newChan
|
c <- newChan
|
||||||
(port,app) <- getApplicationDev
|
(port,app) <- getApplicationDev True
|
||||||
ref <- newIORef app
|
ref <- newIORef app
|
||||||
tid <- forkIO
|
tid <- forkIO
|
||||||
(runSettings
|
(runSettings
|
||||||
@ -47,6 +47,6 @@ update =
|
|||||||
c <- readStore (Store 2)
|
c <- readStore (Store 2)
|
||||||
writeChan c ()
|
writeChan c ()
|
||||||
s <- static "static"
|
s <- static "static"
|
||||||
(port,app) <- getApplicationDev
|
(port,app) <- getApplicationDev True
|
||||||
writeIORef ref app
|
writeIORef ref app
|
||||||
return store
|
return store
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user