Disable Spock init message
This commit is contained in:
parent
0529012574
commit
9ecf6b4098
@ -5,10 +5,10 @@ import Breve.Settings
|
||||
import Breve.UrlTable
|
||||
|
||||
import Web.Spock.Safe
|
||||
|
||||
import Network.Wai.Handler.Warp (run)
|
||||
|
||||
runBreve :: Int -> SpockT IO () -> IO ()
|
||||
runBreve port app = runSpock port (spockT id app)
|
||||
runBreve port app = spockAsApp (spockT id app) >>= run port
|
||||
|
||||
|
||||
main :: IO ()
|
||||
@ -17,7 +17,6 @@ main = do
|
||||
, bindPort
|
||||
, urlTable } <- settings
|
||||
table <- load urlTable
|
||||
|
||||
putStrLn ("Serving on " ++ bindUrl)
|
||||
runBreve bindPort (app bindUrl table)
|
||||
|
Loading…
Reference in New Issue
Block a user