Disable Spock init message

master
rnhmjoj 2015-05-10 03:30:14 +02:00
parent 0529012574
commit 9ecf6b4098
1 changed files with 2 additions and 3 deletions

View File

@ -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)